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.
2 parents 1753858 + fa46b67 commit 5938d10Copy full SHA for 5938d10
.changeset/large-weeks-rescue.md
@@ -0,0 +1,5 @@
1
+---
2
+"@solidjs/router": patch
3
4
+
5
+fix(type): allow value from `Params` and `SearchParams` to be optional
src/types.ts
@@ -23,8 +23,8 @@ declare module "solid-js/web" {
23
}
24
25
26
-export type Params = Record<string, string>;
27
-export type SearchParams = Record<string, string | string[]>;
+export type Params = Record<string, string | undefined>;
+export type SearchParams = Record<string, string | string[] | undefined>;
28
29
export type SetParams = Record<
30
string,
0 commit comments