global.d.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import type { RouteMeta as IRouteMeta } from '@vben-core/typings';
  2. import 'vue-router';
  3. declare module 'vue-router' {
  4. // eslint-disable-next-line @typescript-eslint/no-empty-object-type
  5. interface RouteMeta extends IRouteMeta {}
  6. }
  7. /**
  8. * @deprecated
  9. */
  10. export interface VbenAdminProAppConfigRaw {
  11. VITE_GLOB_API_URL: string;
  12. VITE_GLOB_AUTH_DINGDING_CLIENT_ID: string;
  13. VITE_GLOB_AUTH_DINGDING_CORP_ID: string;
  14. }
  15. /**
  16. * @deprecated
  17. */
  18. interface AuthConfig {
  19. dingding?: {
  20. clientId: string;
  21. corpId: string;
  22. };
  23. }
  24. export interface ApplicationConfig {
  25. /**
  26. * @deprecated
  27. */
  28. apiURL?: string;
  29. /**
  30. * @deprecated
  31. */
  32. auth?: AuthConfig;
  33. requestBaseURL: {
  34. [key: string]: string;
  35. url?: string;
  36. };
  37. }
  38. declare global {
  39. interface Window {
  40. _VBEN_ADMIN_PRO_APP_CONF_: VbenAdminProAppConfigRaw;
  41. }
  42. }
  43. export interface SixRequestConfigRaw {
  44. VITE_GLOB_API_URL: string;
  45. [`VITE_GLOB_API_${string}`]: string;
  46. }
  47. export interface SixAppConfigRaw extends SixRequestConfigRaw {
  48. appId?: string;
  49. }