From 2dc0f43b3d077cb5f629a8a8f627e39ef75e33f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=A4nisch?= Date: Tue, 25 Feb 2020 01:06:42 +0100 Subject: [PATCH] fix(koa): return type of callback method (#42551) --- types/koa/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/koa/index.d.ts b/types/koa/index.d.ts index 85a75a92aa..cd35fc7e3a 100644 --- a/types/koa/index.d.ts +++ b/types/koa/index.d.ts @@ -513,7 +513,7 @@ declare class Application< * Return a request handler callback * for node's native http/http2 server. */ - callback(): (req: IncomingMessage | Http2ServerRequest, res: ServerResponse | Http2ServerResponse) => void; + callback(): (req: IncomingMessage | Http2ServerRequest, res: ServerResponse | Http2ServerResponse) => Promise; /** * Initialize a new context.