env.d.ts
902 Bytes
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_APP_API_URL?: string;
readonly VITE_APP_API_BASE_URL?: string;
readonly VITE_APP_COUPON_IMAGE_BASE_URL?: string;
/** 业务埋点 `POST`,默认相对 `VITE_APP_API_URL` 为 `eventTracking/batchSave` */
readonly VITE_APP_EVENT_TRACKING_PATH?: string;
}
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;
}
/**
* 自定义类型申明
*/
declare module "@vue/runtime-core" {
interface ComponentCustomProperties {
$filters: any;
$auth: AuthService;
$apiUrl: string;
$baseUrl: string;
$store: Store<any>;
$goBack: () => void;
axios: any;
}
}