UNPKG

361 BTypeScriptView Raw
1import middy from '@middy/core'
2import { APIGatewayEvent } from 'aws-lambda'
3import { JsonValue } from 'type-fest'
4
5interface Options {
6 disableContentTypeError?: boolean
7}
8
9export type Event = APIGatewayEvent & {
10 body: JsonValue
11}
12
13declare function urlEncodeBodyParser (
14 options?: Options
15): middy.MiddlewareObj<Event>
16
17export default urlEncodeBodyParser
18
\No newline at end of file