UNPKG

717 BTypeScriptView Raw
1// This file is an augmentation to the built-in ImportMeta interface
2// Thus cannot contain any top-level imports
3// <https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation>
4
5/* eslint-disable @typescript-eslint/consistent-type-imports */
6
7interface ImportMetaEnv {
8 [key: string]: any
9 BASE_URL: string
10 MODE: string
11 DEV: boolean
12 PROD: boolean
13 SSR: boolean
14}
15
16interface ImportMeta {
17 url: string
18
19 readonly hot?: import('./hot').ViteHotContext
20
21 readonly env: ImportMetaEnv
22
23 glob: import('./importGlob').ImportGlobFunction
24 /**
25 * @deprecated Use `import.meta.glob('*', { eager: true })` instead
26 */
27 globEager: import('./importGlob').ImportGlobEagerFunction
28}