21 lines
456 B
TypeScript
21 lines
456 B
TypeScript
/// <reference types="vite/client" />
|
|
declare module '@originjs/vite-plugin-commonjs' {
|
|
import { Plugin } from 'vite';
|
|
const commonjs: () => Plugin;
|
|
export default commonjs;
|
|
}
|
|
|
|
interface ImportMetaEnv {
|
|
readonly VITE_API_URL: string; // 自定义环境变量
|
|
readonly VITE_APP_TITLE: string; // 应用标题
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|
|
|
|
declare module "*.svg" {
|
|
const content: string;
|
|
export default content;
|
|
}
|