Files
youguang_front/src/env.d.ts
zhutao 7817c39606 1
2025-10-27 15:42:57 +08:00

20 lines
491 B
TypeScript

/// <reference types="vite/client" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
}
declare global {
interface ImportMetaEnv {
readonly VITE_APPID: string;
readonly VITE_WEB_URL:string,
// 更多环境变量...
}
interface ImportMeta {
readonly envs: ImportMetaEnv
}
}