2021-08-26 11:25:15 +08:00
|
|
|
// 通用声明
|
2022-06-22 19:29:19 +08:00
|
|
|
|
|
|
|
// Vue
|
|
|
|
declare module '*.vue' {
|
|
|
|
import { DefineComponent } from 'vue';
|
|
|
|
|
|
|
|
const component: DefineComponent<{}, {}, any>;
|
|
|
|
export default component;
|
|
|
|
}
|
|
|
|
|
2021-08-26 11:25:15 +08:00
|
|
|
declare type ClassName = { [className: string]: any } | ClassName[] | string;
|
|
|
|
|
|
|
|
declare interface ImportMeta {
|
|
|
|
env: {
|
|
|
|
MODE: 'mock' | 'development' | 'test' | 'release';
|
|
|
|
};
|
2021-12-06 22:53:37 +08:00
|
|
|
glob: (url: string) => { url };
|
2021-08-26 11:25:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
declare module '*.svg' {
|
2021-09-02 10:36:32 +08:00
|
|
|
const CONTENT: string;
|
|
|
|
export default CONTENT;
|
2021-08-26 11:25:15 +08:00
|
|
|
}
|