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<
77
77
next : NextFunction
78
78
) => void ;
79
79
80
- export declare type NextFunction = ( error ?: Error ) => void ;
80
+ export declare type NextFunction = ( ) => void ;
81
81
82
82
export declare type ErrorHandlingMiddleware <
83
83
TResponse = any ,
@@ -168,7 +168,7 @@ export interface Options {
168
168
mimeTypes ?: {
169
169
[ key : string ] : string ;
170
170
} ;
171
- serializer ?: ( data : any ) => string ;
171
+ serializer ?: SerializerFunction ;
172
172
version ?: string ;
173
173
errorHeaderWhitelist ?: string [ ] ;
174
174
isBase64 ?: boolean ;
@@ -179,6 +179,8 @@ export interface Options {
179
179
s3Config ?: S3ClientConfig ;
180
180
}
181
181
182
+ export declare type SerializerFunction = ( body : object ) => string ;
183
+
182
184
export declare class Request <
183
185
TContext extends RequestContext = APIGatewayContext ,
184
186
TQuery extends Record < string , string | undefined > = Record <
You can’t perform that action at this time.
0 commit comments