MeterSphere/frontend/src/env.d.ts

19 lines
518 B
TypeScript

/// <reference types="vite/client" />
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;
}
interface ImportMetaEnv {
readonly VITE_API_BASE_URL: string;
readonly VITE_DEV_DOMAIN: string; // 开发环境域名
}
declare module 'xml-beautify' {
export default class xmlBeautify {
beautify: (xml: string) => string;
}
}