diff --git a/index.d.ts b/index.d.ts index 70127040..aa154fd4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -3876,10 +3876,10 @@ declare class Webhooks { callback: (event: Webhooks.WebhookEvent) => Promise ): 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; } export = Webhooks;