Skip to content

Commit 81a1e4b

Browse files
wolfy1339gr2m
authored andcommitted
fix(typescript): Mark next function argument in middleware as optional
1 parent 710e06c commit 81a1e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3878,7 +3878,7 @@ declare class Webhooks {
38783878
public middleware(
38793879
request: http.IncomingMessage,
38803880
response: http.ServerResponse,
3881-
next: (err?: any) => void
3881+
next?: (err?: any) => void
38823882
): void | Promise<void>;
38833883
}
38843884

0 commit comments

Comments
 (0)