From d7398f6bff5bf5c220f8a6f9233c37c538e1e225 Mon Sep 17 00:00:00 2001 From: kodemon Date: Fri, 18 Apr 2025 21:31:34 +0000 Subject: [PATCH] feat: add explicit return type for api handle --- libraries/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/api.ts b/libraries/api.ts index ccf364d..fcc8c41 100644 --- a/libraries/api.ts +++ b/libraries/api.ts @@ -53,7 +53,7 @@ export class Api { * * @param request - Fetch request to pass to a route handler. */ - async handle(request: Request) { + async handle(request: Request): Promise { const url = new URL(request.url); const matched = this.#resolve(request.method, request.url);