29 lines
666 B
TypeScript
29 lines
666 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare module '*.vue' {
|
|
import type { DefineComponent } from 'vue';
|
|
const component: DefineComponent<{}, {}, any>;
|
|
export default component;
|
|
}
|
|
|
|
declare module '@/*' {
|
|
import type { ComponentOptions } from 'vue';
|
|
const component: ComponentOptions;
|
|
export default component;
|
|
}
|
|
|
|
interface ImportMetaEnv {
|
|
readonly VITE_API_BASE_URL: string;
|
|
// 添加其他环境变量...
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|
|
|
|
declare module 'vue-cropper' {
|
|
import { DefineComponent } from 'vue';
|
|
const VueCropper: DefineComponent<{}, {}, any>;
|
|
export default VueCropper;
|
|
}
|