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.