From 4ed9465219ae95bc25df3db9f3e269721811bd29 Mon Sep 17 00:00:00 2001 From: saltyaom Date: Mon, 23 Dec 2024 15:34:08 +0700 Subject: [PATCH] :tada: feat: release 1.1.27 --- src/context.ts | 2 +- src/dynamic-handle.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/context.ts b/src/context.ts index 41b3198f..a727e198 100644 --- a/src/context.ts +++ b/src/context.ts @@ -107,7 +107,7 @@ export type Context< { body: Route['body'] query: undefined extends Route['query'] - ? Record + ? Record : Route['query'] params: undefined extends Route['params'] ? undefined extends Path diff --git a/src/dynamic-handle.ts b/src/dynamic-handle.ts index c45a22dc..9f45e7bd 100644 --- a/src/dynamic-handle.ts +++ b/src/dynamic-handle.ts @@ -175,6 +175,8 @@ export const createDynamicHandler = context.body = body context.params = handler?.params || undefined + + // @ts-ignore context.query = qi === -1 ? {} : parseQuery(url.substring(qi + 1))