Skip to content

Commit 710e06c

Browse files
wolfy1339gr2m
authored andcommitted
fix(typescript): Update signature for middleware function
The bug was introduced in #55 Fixes #64
1 parent 5c7455c commit 710e06c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3876,10 +3876,10 @@ declare class Webhooks {
38763876
callback: (event: Webhooks.WebhookEvent<any>) => Promise<void>
38773877
): void;
38783878
public middleware(
3879-
request: http.ClientRequest,
3879+
request: http.IncomingMessage,
38803880
response: http.ServerResponse,
38813881
next: (err?: any) => void
3882-
): (request: http.IncomingMessage, response: http.ServerResponse) => void;
3882+
): void | Promise<void>;
38833883
}
38843884

38853885
export = Webhooks;

0 commit comments

Comments
 (0)