37 lines
842 B
TypeScript
37 lines
842 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 {
|
|
/** 应用端口 */
|
|
VITE_APP_PORT: string;
|
|
/** API 基础路径 */
|
|
VITE_APP_BASE_API: string;
|
|
VITE_APP_API_URL: string;
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv;
|
|
}
|
|
|
|
/**
|
|
* 平台的名称、版本、运行所需的`node`版本、依赖、构建时间的类型提示
|
|
*/
|
|
declare const __APP_INFO__: {
|
|
pkg: {
|
|
name: string;
|
|
version: string;
|
|
engines: {
|
|
node: string;
|
|
};
|
|
dependencies: Record<string, string>;
|
|
devDependencies: Record<string, string>;
|
|
};
|
|
buildTimestamp: number;
|
|
};
|