env.d.ts 563 B

1234567891011121314151617
  1. /// <reference types="vite/client" />
  2. declare module '*.vue' {
  3. import { DefineComponent } from 'vue'
  4. // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
  5. const component: DefineComponent<any, {}, any>
  6. export default component
  7. }
  8. interface ImportMetaEnv extends Readonly<Record<string, string>> {
  9. // Only string type here to avoid hard to debug cast problems in your components!
  10. readonly VITE_APP_VERSION: string
  11. readonly VITE_APP_BUILD_EPOCH?: string
  12. }
  13. interface ImportMeta {
  14. readonly env: ImportMetaEnv
  15. }