Skip to content

Commit 3e94a92

Browse files
committed
feat(types): default param setter
1 parent 833a3e7 commit 3e94a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const PATH_PARAM_DEFAULT_GET = (value: string | string[] | null | undefined) =>
151151
value ?? null
152152
export const PATH_PARAM_SINGLE_DEFAULT: ParamParser<string, string> = {}
153153

154-
const PATH_PARAM_DEFAULT_SET = (value: unknown) =>
154+
const PATH_PARAM_DEFAULT_SET = (value: string | string[] | null | undefined) =>
155155
value && Array.isArray(value) ? value.map(String) : String(value)
156156
// TODO: `(value an null | undefined)` for types
157157
export const PATH_PARAM_DEFAULT_PARSER: ParamParser = {

0 commit comments

Comments
 (0)