Skip to content

Commit 3654a2f

Browse files
committed
.
1 parent 7a94e93 commit 3654a2f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

8282
export 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+
182184
export declare class Request<
183185
TContext extends RequestContext = APIGatewayContext,
184186
TQuery extends Record<string, string | undefined> = Record<

0 commit comments

Comments
 (0)