- default(serverlessHandler): ((request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>) => Promise<void>)
Parameters
- serverlessHandler: ((event: APIGatewayProxyEvent, context: Context) => Promise<void>)
- (event, context): Promise<void>
Parameters
- event: APIGatewayProxyEvent
- context: Context
Returns Promise<void>
None
Returns ((request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>) => Promise<void>)
- An async function that handles the request and sends a response.
- (request, res): Promise<void>
Parameters
- request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
- res: Response<any, Record<string, any>>
Returns Promise<void>
Creates an async function that handles serverless events and sends a response.