Skip to content

Commit

Permalink
fix(typescript): Update signature for middleware function
Browse files Browse the repository at this point in the history
The bug was introduced in #55
Fixes #64
  • Loading branch information
wolfy1339 authored and gr2m committed Mar 29, 2019
1 parent 5c7455c commit 710e06c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3876,10 +3876,10 @@ declare class Webhooks {
callback: (event: Webhooks.WebhookEvent<any>) => Promise<void>
): void;
public middleware(
request: http.ClientRequest,
request: http.IncomingMessage,
response: http.ServerResponse,
next: (err?: any) => void
): (request: http.IncomingMessage, response: http.ServerResponse) => void;
): void | Promise<void>;
}

export = Webhooks;

0 comments on commit 710e06c

Please sign in to comment.