This commit is contained in:
21
src/types/router.ts
Normal file
21
src/types/router.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import 'vue-router'
|
||||
|
||||
// 为了确保这个文件被当作一个模块,添加至少一个 `export` 声明
|
||||
export { }
|
||||
|
||||
// declare module 'vue-router' {
|
||||
// interface RouteMeta {
|
||||
// // fromList?: RouteLocationNormalized[]
|
||||
// }
|
||||
|
||||
// interface Router {
|
||||
// stack: {
|
||||
// // list: RouteLocationNormalizedLoaded[]
|
||||
// // currentStackIndex: number
|
||||
// }
|
||||
// }
|
||||
// interface RouteLocationNormalizedGeneric {
|
||||
// // from: RouteLocationNormalizedLoaded
|
||||
// // stackIndex: number
|
||||
// }
|
||||
// }
|
12
src/types/shims.d.ts
vendored
Normal file
12
src/types/shims.d.ts
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
export {}
|
||||
|
||||
declare global {
|
||||
const $__DEV__: boolean
|
||||
}
|
||||
|
||||
/* declare module 'vue' {
|
||||
export interface ComponentCustomProperties {
|
||||
$__DEV__: boolean;
|
||||
}
|
||||
}
|
||||
*/
|
Reference in New Issue
Block a user