We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 833a3e7 commit 3e94a92Copy full SHA for 3e94a92
packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts
@@ -151,7 +151,7 @@ const PATH_PARAM_DEFAULT_GET = (value: string | string[] | null | undefined) =>
151
value ?? null
152
export const PATH_PARAM_SINGLE_DEFAULT: ParamParser<string, string> = {}
153
154
-const PATH_PARAM_DEFAULT_SET = (value: unknown) =>
+const PATH_PARAM_DEFAULT_SET = (value: string | string[] | null | undefined) =>
155
value && Array.isArray(value) ? value.map(String) : String(value)
156
// TODO: `(value an null | undefined)` for types
157
export const PATH_PARAM_DEFAULT_PARSER: ParamParser = {
0 commit comments