Skip to content

Commit

Permalink
style: remove trailing whitespace (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Nov 3, 2024
1 parent 40ca87a commit f452d37
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,34 @@ declare namespace awsLambdaFastify {
/**
* Parse querystring with commas into an array of values.
* Affects the behavior of the querystring parser with commas while using [Payload Format Version 2.0](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html#http-api-develop-integrations-lambda.proxy-format)
*
*
* e.g. when set to `true` (default) `?foo=qux,bar` => `{ foo: ['qux', 'bar'] }`
*
*
* e.g. when set to `false` `?foo=qux,bar` => `{ foo: 'qux,bar' }`
* @default true
*/
parseCommaSeparatedQueryParams?: boolean;
}

export interface LambdaResponse {
statusCode: number;
body: string;
headers: Record<string, string>;
isBase64Encoded: boolean;
cookies?: string[]
}

export type PromiseHandler<TEvent = any, TResult = LambdaResponse> = (
event: TEvent,
context: Context
) => Promise<TResult>;

export type CallbackHandler<TEvent = any, TResult = LambdaResponse> = (
event: TEvent,
context: Context,
callback: (err?: Error, result?: TResult) => void
) => void;

export const awsLambdaFastify: AwsLambdaFastify
export { awsLambdaFastify as default }
}
Expand Down

0 comments on commit f452d37

Please sign in to comment.