From 81a1e4b707484f28bcdbfa7e18a26f3a67e80af3 Mon Sep 17 00:00:00 2001 From: wolfy1339 <4595477+wolfy1339@users.noreply.github.com> Date: Fri, 29 Mar 2019 15:46:46 -0400 Subject: [PATCH] fix(typescript): Mark next function argument in middleware as optional --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index aa154fd4..de07bf82 100644 --- a/index.d.ts +++ b/index.d.ts @@ -3878,7 +3878,7 @@ declare class Webhooks { public middleware( request: http.IncomingMessage, response: http.ServerResponse, - next: (err?: any) => void + next?: (err?: any) => void ): void | Promise; }