UNPKG

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