Skip to content

Commit

Permalink
fix(typescript): Mark next function argument in middleware as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 authored and gr2m committed Mar 29, 2019
1 parent 710e06c commit 81a1e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3878,7 +3878,7 @@ declare class Webhooks {
public middleware(
request: http.IncomingMessage,
response: http.ServerResponse,
next: (err?: any) => void
next?: (err?: any) => void
): void | Promise<void>;
}

Expand Down

0 comments on commit 81a1e4b

Please sign in to comment.