File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
experiments-playground/src/router Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 55 MatcherPatternPathStatic ,
66 MatcherPatternPathCustomParams ,
77 normalizeRouteRecord ,
8- PARAM_PARSER_INTEGER ,
8+ PARAM_PARSER_INT ,
99} from 'vue-router/experimental'
1010import type {
1111 EXPERIMENTAL_RouteRecordNormalized_Matchable ,
@@ -146,7 +146,7 @@ const r_profiles_detail = normalizeRouteRecord({
146146 // this version handles all kind of params but in practice,
147147 // the generation should recognize this is a single required param
148148 // and therefore userId is of type number
149- userId : PARAM_PARSER_INTEGER ,
149+ userId : PARAM_PARSER_INT ,
150150 } ,
151151 [ 'profiles' , 0 ]
152152 ) ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export {
2525 MatcherPatternPathCustomParams ,
2626 // custom param parsers
2727 // TODO: find a more elegant format than having 4 variants per param type
28- PARAM_PARSER_INTEGER ,
28+ PARAM_PARSER_INT ,
2929 PARAM_INTEGER_SINGLE ,
3030 PARAM_NUMBER_OPTIONAL ,
3131 PARAM_NUMBER_REPEATABLE ,
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ export const PARAM_NUMBER_REPEATABLE_OPTIONAL = {
254254 *
255255 * @internal
256256 */
257- export const PARAM_PARSER_INTEGER : Param_GetSet < number | number [ ] | null > = {
257+ export const PARAM_PARSER_INT : Param_GetSet < number | number [ ] | null > = {
258258 get : value =>
259259 Array . isArray ( value )
260260 ? PARAM_NUMBER_REPEATABLE . get ( value )
You can’t perform that action at this time.
0 commit comments