Files
vue3-study/env.d.ts
T
2023-12-07 10:57:52 +08:00

16 lines
345 B
TypeScript

/// <reference types="vite/client" />
interface ImportMetaEnv {
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;
}