25 lines
520 B
TypeScript
25 lines
520 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare module '*.vue' {
|
|
import type { DefineComponent } from 'vue'
|
|
const component: DefineComponent<{}, {}, any>
|
|
export default component
|
|
}
|
|
|
|
// Vite environment variables
|
|
interface ImportMetaEnv {
|
|
readonly VITE_API_URL?: string
|
|
readonly DEV: boolean
|
|
readonly PROD: boolean
|
|
readonly VITEST: boolean
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv
|
|
}
|
|
|
|
// Global variables for automatic validation
|
|
declare global {
|
|
var __AUTO_VALIDATE__: boolean | undefined
|
|
}
|