Skip to content

Commit

Permalink
🎉 feat: release 1.1.27
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed Dec 23, 2024
1 parent cd7a6a1 commit 4ed9465
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export type Context<
{
body: Route['body']
query: undefined extends Route['query']
? Record<string, string | string[] | undefined>
? Record<string, string | undefined>
: Route['query']
params: undefined extends Route['params']
? undefined extends Path
Expand Down
2 changes: 2 additions & 0 deletions src/dynamic-handle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 4ed9465

Please sign in to comment.