1 | import middy from '@middy/core'
|
2 |
|
3 | interface SerializerHandler {
|
4 | regex: RegExp
|
5 | serializer: (respones: any) => string
|
6 | }
|
7 |
|
8 | interface Options {
|
9 | serializers: SerializerHandler[]
|
10 | defaultContentType?: string
|
11 | }
|
12 |
|
13 | declare function httpResponseSerializer (options?: Options): middy.MiddlewareObj
|
14 |
|
15 | export default httpResponseSerializer
|
16 |
|
\ | No newline at end of file |