shims-vue.d.ts 531 B

12345678910111213141516171819202122
  1. import type { PermissionType } from '@/core/permission/modules/types';
  2. declare module '*.vue' {
  3. import type { DefineComponent } from 'vue';
  4. const component: DefineComponent<{}, {}, any>;
  5. export default component;
  6. }
  7. declare module '@vue/runtime-core' {
  8. export interface ComponentCustomProperties {
  9. $auth: (perm: PermissionType) => boolean;
  10. Reflect: Reflect;
  11. }
  12. }
  13. declare type Nullable<T> = T | null;
  14. declare type CustomizedHTMLElement<T> = HTMLElement & T;
  15. declare type Indexable<T> = {
  16. [key: string]: T;
  17. };