]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
refactor: remove both format from query params
authorEduardo San Martin Morote <posva13@gmail.com>
Sat, 30 Aug 2025 20:00:40 +0000 (22:00 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Sat, 30 Aug 2025 20:00:40 +0000 (22:00 +0200)
packages/experiments-playground/src/router/index.ts
packages/router/src/experimental/route-resolver/matchers/matcher-pattern-query.ts

index 0fec1f8d82b62966e87dd8222e19eb41b3cf60c3..76e019871c654fef1c9850c6070f79e824fd44fe 100644 (file)
@@ -63,7 +63,6 @@ const r_home = normalizeRouteRecord({
     new MatcherPatternQueryParam('pageArray', 'p', 'array', PARAM_PARSER_INT, [
       1,
     ]),
-    new MatcherPatternQueryParam('pageBoth', 'p', 'both', PARAM_PARSER_INT, 1),
     new MatcherPatternQueryParam('page', 'p', 'value', PARAM_PARSER_INT, 1),
     QUERY_PATTERN_MATCHER,
   ],
index a5a09b6b00e96d6aa604f01dc26f4091c9449efe..dfabc658258511766b4f2191ef20c1e9817e1de9 100644 (file)
@@ -24,7 +24,7 @@ export class MatcherPatternQueryParam<T, ParamName extends string>
   constructor(
     private paramName: ParamName,
     private queryKey: string,
-    private format: 'value' | 'array' | 'both',
+    private format: 'value' | 'array',
     private parser: ParamParser<T> = {},
     private defaultValue?: (() => T) | T
   ) {}