import type { DefineComponent } from 'vue' import type { RoleType } from '@/utils/permission/role' declare module '*.vue' { const component: DefineComponent<{}, {}, any> export default component } declare module 'vue' { interface ComponentCustomProperties { $role: Fn $roleNot: Fn Reflect: Reflect } }