Skip to content

Commit edd3326

Browse files
committed
chore: errors
1 parent 3646b9c commit edd3326

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

packages/router/src/experimental/route-resolver/matchers/param-parsers/booleans.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
PARAM_BOOLEAN_SINGLE,
44
PARAM_BOOLEAN_OPTIONAL,
55
PARAM_BOOLEAN_REPEATABLE,
6-
PARAM_BOOLEAN_REPEATABLE_OPTIONAL,
76
PARAM_PARSER_BOOL,
87
} from './booleans'
98

packages/router/src/experimental/route-resolver/matchers/param-parsers/booleans.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const PARAM_BOOLEAN_REPEATABLE_OPTIONAL = {
4444
*
4545
* @internal
4646
*/
47-
export const PARAM_PARSER_BOOL: ParamParser<boolean | boolean[] | null> = {
47+
export const PARAM_PARSER_BOOL = {
4848
get: value =>
4949
Array.isArray(value)
5050
? PARAM_BOOLEAN_REPEATABLE.get(value)
@@ -53,4 +53,4 @@ export const PARAM_PARSER_BOOL: ParamParser<boolean | boolean[] | null> = {
5353
Array.isArray(value)
5454
? PARAM_BOOLEAN_REPEATABLE.set(value)
5555
: PARAM_BOOLEAN_SINGLE.set(value),
56-
}
56+
} satisfies ParamParser<boolean | boolean[] | null>

packages/router/src/experimental/route-resolver/matchers/param-parsers/integers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const PARAM_INTEGER_REPEATABLE_OPTIONAL = {
3636
*
3737
* @internal
3838
*/
39-
export const PARAM_PARSER_INT: ParamParser<number | number[] | null> = {
39+
export const PARAM_PARSER_INT = {
4040
get: value =>
4141
Array.isArray(value)
4242
? PARAM_INTEGER_REPEATABLE.get(value)
@@ -49,4 +49,4 @@ export const PARAM_PARSER_INT: ParamParser<number | number[] | null> = {
4949
: value != null
5050
? PARAM_INTEGER_SINGLE.set(value)
5151
: null,
52-
}
52+
} satisfies ParamParser<number | number[] | null>

0 commit comments

Comments
 (0)