diff --git a/http-server/types/http-server.d.ts b/http-server/types/http-server.d.ts index c338d71..dbdf0bd 100644 --- a/http-server/types/http-server.d.ts +++ b/http-server/types/http-server.d.ts @@ -34,7 +34,7 @@ export interface HttpRouter { define: ( method: HttpMethod, pathname: string, - handler: (ctx: HttpContext) => void, + handler: (ctx: HttpContext) => Promise, options?: HttpRouteOptions ) => void; }