tdesign-vue-next-starter/types/globals.d.ts
2022-06-22 19:29:19 +08:00

24 lines
465 B
TypeScript

// 通用声明
// Vue
declare module '*.vue' {
import { DefineComponent } from 'vue';
const component: DefineComponent<{}, {}, any>;
export default component;
}
declare type ClassName = { [className: string]: any } | ClassName[] | string;
declare interface ImportMeta {
env: {
MODE: 'mock' | 'development' | 'test' | 'release';
};
glob: (url: string) => { url };
}
declare module '*.svg' {
const CONTENT: string;
export default CONTENT;
}