importMeta.d.ts 597 B

123456789101112131415161718192021222324252627
  1. declare interface ImportMeta {
  2. readonly hot?: {
  3. readonly data: any
  4. accept(): void
  5. accept(cb: (mod: any) => void): void
  6. acceptDeps(dep: string, cb: (mod: any) => void): void
  7. acceptDeps(deps: readonly string[], cb: (mods: any[]) => void): void
  8. dispose(cb: (data: any) => void): void
  9. decline(): void
  10. invalidate(): void
  11. on(event: string, cb: (...args: any[]) => void): void
  12. }
  13. readonly env: ImportMetaEnv
  14. }
  15. declare interface ImportMetaEnv {
  16. [key: string]: string | boolean | undefined
  17. BASE_URL: string
  18. MODE: string
  19. DEV: boolean
  20. PROD: boolean
  21. }