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 octokit#55
Fixes octokit#64
  • Loading branch information
wolfy1339 authored Mar 29, 2019
1 parent 5c7455c commit 90e91f6
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 90e91f6

Please sign in to comment.