File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ export declare type Middleware<
7777 next : NextFunction
7878) => void ;
7979
80- export declare type NextFunction = ( error ?: Error ) => void ;
80+ export declare type NextFunction = ( ) => void ;
8181
8282export declare type ErrorHandlingMiddleware <
8383 TResponse = any ,
@@ -168,7 +168,7 @@ export interface Options {
168168 mimeTypes ?: {
169169 [ key : string ] : string ;
170170 } ;
171- serializer ?: ( data : any ) => string ;
171+ serializer ?: SerializerFunction ;
172172 version ?: string ;
173173 errorHeaderWhitelist ?: string [ ] ;
174174 isBase64 ?: boolean ;
@@ -179,6 +179,8 @@ export interface Options {
179179 s3Config ?: S3ClientConfig ;
180180}
181181
182+ export declare type SerializerFunction = ( body : object ) => string ;
183+
182184export declare class Request <
183185 TContext extends RequestContext = APIGatewayContext ,
184186 TQuery extends Record < string , string | undefined > = Record <
You can’t perform that action at this time.
0 commit comments