Skip to content

Commit 45e1ab2

Browse files
committed
allow looser type for params to allow for better validation
1 parent 0ca5bbf commit 45e1ab2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/event-handler/src/types/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type ReqSchema = {
3232
body?: unknown;
3333
headers?: Record<string, string>;
3434
path?: Record<string, string>;
35-
query?: Record<string, string>;
35+
query?: Record<string, unknown>;
3636
};
3737

3838
/**

packages/event-handler/src/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,5 @@ export type {
4646
RequestContext,
4747
RouteHandler,
4848
TracerOptions,
49+
TypedRequestContext,
4950
} from './http.js';

0 commit comments

Comments
 (0)