Skip to content

Commit dd3d169

Browse files
committed
change param processing utility return type to record<string, string>
1 parent 6ae818d commit dd3d169

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/event-handler/src/rest/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export function validatePathPattern(path: Path): ValidationResult {
4646

4747
export function processParams(
4848
params: Record<string, string>
49-
): Record<string, any> {
50-
const processed: Record<string, any> = {};
49+
): Record<string, string> {
50+
const processed: Record<string, string> = {};
5151

5252
for (const [key, value] of Object.entries(params)) {
5353
processed[key] = decodeURIComponent(value);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type Path = `/${string}`;
3333

3434
type RouteHandlerOptions = {
3535
handler: RouteHandler;
36-
params: Record<string, any>;
36+
params: Record<string, string>;
3737
rawParams: Record<string, string>;
3838
};
3939

0 commit comments

Comments
 (0)