vue模块
declare module "*.vue" {
import type { DefineComponent } from "vue";
const component: DefineComponent<{}, {}, any>;
export default component;
}
vue-router模块
declare module 'vue-router' {
// 扩展 元信息类型
interface RouteMeta {
// 标题
title?: string,
meta?:{
text?:string,
icon?:string
}
}
}