Skip to content

Commit 2cfaaba

Browse files
committed
chore: rename to int
1 parent e2966b0 commit 2cfaaba

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/experiments-playground/src/router/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
MatcherPatternPathStatic,
66
MatcherPatternPathCustomParams,
77
normalizeRouteRecord,
8-
PARAM_PARSER_INTEGER,
8+
PARAM_PARSER_INT,
99
} from 'vue-router/experimental'
1010
import 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
),

packages/router/src/experimental/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

packages/router/src/experimental/route-resolver/matchers/matcher-pattern.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)