gohttpdUi/types/env.d.ts

25 lines
633 B
TypeScript
Raw Normal View History

2021-10-17 11:46:40 +08:00
/// <reference types="vite/client" />
2021-10-10 09:59:52 +08:00
declare module '*.vue' {
import { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
}
2021-12-07 17:20:19 +08:00
2022-03-01 14:37:15 +08:00
interface ImportMetaEnv {
readonly VITE_APP_TITLE: string
2023-06-08 09:47:18 +08:00
readonly VITE_API_BASE_PATH: string
2022-03-01 14:37:15 +08:00
readonly VITE_BASE_PATH: string
readonly VITE_DROP_DEBUGGER: string
readonly VITE_DROP_CONSOLE: string
readonly VITE_SOURCEMAP: string
readonly VITE_OUT_DIR: string
}
2021-12-07 17:20:19 +08:00
declare global {
interface ImportMeta {
2022-03-01 14:37:15 +08:00
readonly env: ImportMetaEnv
2021-12-07 17:20:19 +08:00
}
}