Files
riwa-ionic/types/env.d.ts

22 lines
541 B
TypeScript

// env.d.ts
/// <reference types="vitest" />
/// <reference types="vite/client" />
interface ViteTypeOptions {
// 添加这行代码,你就可以将 ImportMetaEnv 的类型设为严格模式,
// 这样就不允许有未知的键值了。
// strictImportMetaEnv: unknown
}
interface ImportMetaEnv {
readonly VITE_API_URL: string;
readonly VITE_TRADINGVIEW_LIBRARY_URL: string;
readonly VITE_TRADINGVIEW_DATA_API_URL: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
declare const __APP_VERSION__: string;