tdesign-vue-next-starter/types/globals.d.ts

24 lines
465 B
TypeScript
Raw Normal View History

// 通用声明
// 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;
}