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