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 Apr 1, 2019
1 parent e5070b2 commit 245c40d
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 @@ -3928,7 +3928,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 245c40d

Please sign in to comment.