admin-vben/packages/types/global.d.ts

27 lines
594 B
TypeScript
Raw Normal View History

2024-06-02 07:04:37 +00:00
import type { RouteMeta as IRouteMeta } from '@vben-core/typings';
2024-05-19 13:20:42 +00:00
2024-06-08 11:49:06 +00:00
import 'vue-router';
2024-06-02 07:04:37 +00:00
declare module 'vue-router' {
2024-07-31 16:06:36 +00:00
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
2024-06-02 07:04:37 +00:00
interface RouteMeta extends IRouteMeta {}
2024-05-19 13:20:42 +00:00
}
export interface VbenAdminProAppConfigRaw {
VITE_GLOB_API_URL: string;
2024-11-16 14:33:47 +00:00
VITE_APP_TENANT_ENABLE: boolean;
VITE_APP_CAPTCHA_ENABLE: boolean;
}
export interface ApplicationConfig {
apiURL: string;
2024-11-16 14:33:47 +00:00
captchaEnable: boolean;
tenantEnable: boolean;
}
declare global {
interface Window {
_VBEN_ADMIN_PRO_APP_CONF_: VbenAdminProAppConfigRaw;
}
}