Files
vue3-study/env.d.ts
T
2023-11-28 14:09:17 +08:00

17 lines
371 B
TypeScript

/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly MODE: string
readonly VITE_APP_NAME: string
// 更多环境变量...
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
declare module "*.vue" {
import type { DefineComponent } from "vue";
const component: DefineComponent<{}, {}, any>;
export default component;
}