@intlify/vue-router-bridge
Advanced tools
Comparing version
@@ -92,3 +92,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
} | ||
declare type RoutePropsFunction = (route: Route) => Record<string, anu> | ||
declare type RoutePropsFunction = (route: Route) => Record<string, any> | ||
declare interface _RouteConfigBase { | ||
@@ -107,3 +107,3 @@ path: string | ||
component?: Component | ||
props?: boolean | Rect | RoutePropsFunction | ||
props?: boolean | Record<string, any> | RoutePropsFunction | ||
} | ||
@@ -148,2 +148,9 @@ declare interface RouteConfigMultipleViews extends _RouteConfigBase { | ||
/** | ||
* Define dummy vue-router 3 class | ||
*/ | ||
declare class VueRouter3 { | ||
constructor(options?: RouterOptions) | ||
} | ||
// export vue-router@4 typings | ||
@@ -167,5 +174,5 @@ export * from 'vue-router' | ||
// export dummy VueRouter class | ||
export default VueRouter | ||
// Export dummy VueRouter class | ||
export default VueRouter3 | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ |
@@ -92,3 +92,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
} | ||
declare type RoutePropsFunction = (route: Route) => Record<string, anu> | ||
declare type RoutePropsFunction = (route: Route) => Record<string, any> | ||
declare interface _RouteConfigBase { | ||
@@ -107,3 +107,3 @@ path: string | ||
component?: Component | ||
props?: boolean | Rect | RoutePropsFunction | ||
props?: boolean | Record<string, any> | RoutePropsFunction | ||
} | ||
@@ -148,2 +148,9 @@ declare interface RouteConfigMultipleViews extends _RouteConfigBase { | ||
/** | ||
* Define dummy vue-router 3 class | ||
*/ | ||
declare class VueRouter3 { | ||
constructor(options?: RouterOptions) | ||
} | ||
// export vue-router@4 typings | ||
@@ -167,5 +174,5 @@ export * from 'vue-router' | ||
// export dummy VueRouter class | ||
export default VueRouter | ||
// Export dummy VueRouter class | ||
export default VueRouter3 | ||
/* eslint-enable @typescript-eslint/no-explicit-any */ |
{ | ||
"name": "@intlify/vue-router-bridge", | ||
"version": "0.3.2", | ||
"version": "0.3.3-1ecc7b2", | ||
"description": "Vue Router bridging for Vue 2 & Vue 3", | ||
"scripts": { | ||
"postinstall": "node ./scripts/postinstall.js" | ||
}, | ||
"peerDependencies": { | ||
@@ -67,3 +64,6 @@ "@vue/composition-api": "^1.0.0-rc.1", | ||
"access": "public" | ||
}, | ||
"scripts": { | ||
"postinstall": "node ./scripts/postinstall.js" | ||
} | ||
} | ||
} |
25851
1.03%616
1.99%