File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
playground-file-based/src
router/src/unplugin/codegen Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ import type {
1818// Custom route params parsers
1919type Param_date = ReturnType < NonNullable < typeof import ( './src/params/date.ts' ) . parser [ 'get' ] > >
2020
21- declare module 'vue-router/auto-resolver' {
22- export type ParamParserCustom = 'date'
21+ declare module 'vue-router' {
22+ interface TypesConfig {
23+ ParamParsers : 'date'
24+ }
2325}
2426
2527declare module 'vue-router/auto-routes' {
Original file line number Diff line number Diff line change @@ -54,8 +54,10 @@ ${paramsTypesDeclaration}
5454
5555` . trimStart ( )
5656 : ''
57- } declare module 'vue-router/auto-resolver' {
58- export type ParamParserCustom = ${ customParamsType }
57+ } declare module 'vue-router' {
58+ interface TypesConfig {
59+ ParamParsers: ${ customParamsType }
60+ }
5961}
6062
6163declare module '${ routesModule } ' {
You can’t perform that action at this time.
0 commit comments