From: Eduardo San Martin Morote Date: Mon, 25 Aug 2025 13:18:48 +0000 (+0200) Subject: chore: errors X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=edd3326696a91ff8842baa532ac223965e801156;p=thirdparty%2Fvuejs%2Frouter.git chore: errors --- diff --git a/packages/router/src/experimental/route-resolver/matchers/param-parsers/booleans.spec.ts b/packages/router/src/experimental/route-resolver/matchers/param-parsers/booleans.spec.ts index 44adce7f..8d597ed6 100644 --- a/packages/router/src/experimental/route-resolver/matchers/param-parsers/booleans.spec.ts +++ b/packages/router/src/experimental/route-resolver/matchers/param-parsers/booleans.spec.ts @@ -3,7 +3,6 @@ import { PARAM_BOOLEAN_SINGLE, PARAM_BOOLEAN_OPTIONAL, PARAM_BOOLEAN_REPEATABLE, - PARAM_BOOLEAN_REPEATABLE_OPTIONAL, PARAM_PARSER_BOOL, } from './booleans' diff --git a/packages/router/src/experimental/route-resolver/matchers/param-parsers/booleans.ts b/packages/router/src/experimental/route-resolver/matchers/param-parsers/booleans.ts index 98fc1264..d1e3dc11 100644 --- a/packages/router/src/experimental/route-resolver/matchers/param-parsers/booleans.ts +++ b/packages/router/src/experimental/route-resolver/matchers/param-parsers/booleans.ts @@ -44,7 +44,7 @@ export const PARAM_BOOLEAN_REPEATABLE_OPTIONAL = { * * @internal */ -export const PARAM_PARSER_BOOL: ParamParser = { +export const PARAM_PARSER_BOOL = { get: value => Array.isArray(value) ? PARAM_BOOLEAN_REPEATABLE.get(value) @@ -53,4 +53,4 @@ export const PARAM_PARSER_BOOL: ParamParser = { Array.isArray(value) ? PARAM_BOOLEAN_REPEATABLE.set(value) : PARAM_BOOLEAN_SINGLE.set(value), -} +} satisfies ParamParser diff --git a/packages/router/src/experimental/route-resolver/matchers/param-parsers/integers.ts b/packages/router/src/experimental/route-resolver/matchers/param-parsers/integers.ts index 1386b1a5..814b63cd 100644 --- a/packages/router/src/experimental/route-resolver/matchers/param-parsers/integers.ts +++ b/packages/router/src/experimental/route-resolver/matchers/param-parsers/integers.ts @@ -36,7 +36,7 @@ export const PARAM_INTEGER_REPEATABLE_OPTIONAL = { * * @internal */ -export const PARAM_PARSER_INT: ParamParser = { +export const PARAM_PARSER_INT = { get: value => Array.isArray(value) ? PARAM_INTEGER_REPEATABLE.get(value) @@ -49,4 +49,4 @@ export const PARAM_PARSER_INT: ParamParser = { : value != null ? PARAM_INTEGER_SINGLE.set(value) : null, -} +} satisfies ParamParser