You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

global.d.ts 1.5KB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. export {}
  2. declare global {
  3. export type Writable<T> = {
  4. -readonly [P in keyof T]: T[P];
  5. };
  6. declare type Nullable<T> = T | null;
  7. declare type NonNullable<T> = T extends null | undefined ? never : T;
  8. export declare type Recordable<T = any> = Record<string, T>;
  9. declare type ReadonlyRecordable<T = any> = {
  10. readonly [key: string]: T;
  11. };
  12. declare type Indexable<T = any> = {
  13. [key: string]: T;
  14. };
  15. declare type DeepPartial<T> = {
  16. [P in keyof T]?: DeepPartial<T[P]>;
  17. };
  18. declare type TimeoutHandle = ReturnType<typeof setTimeout>;
  19. declare type IntervalHandle = ReturnType<typeof setInterval>;
  20. declare interface ChangeEvent extends Event {
  21. target: HTMLInputElement;
  22. }
  23. interface ImportMetaEnv extends ViteEnv {
  24. __: unknown;
  25. };
  26. export declare interface ViteEnv {
  27. VITE_PORT: number;
  28. VITE_USE_MOCK: boolean;
  29. VITE_USE_PWA: boolean;
  30. VITE_PUBLIC_PATH: string;
  31. VITE_PROXY: [string, string][];
  32. VITE_GLOB_APP_TITLE: string;
  33. VITE_GLOB_APP_SHORT_NAME: string;
  34. VITE_USE_CDN: boolean;
  35. VITE_DROP_CONSOLE: boolean;
  36. VITE_BUILD_COMPRESS: 'gzip' | 'brotli' | 'none';
  37. VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE: boolean;
  38. VITE_LEGACY: boolean;
  39. VITE_USE_IMAGEMIN: boolean;
  40. VITE_GENERATE_UI: string;
  41. };
  42. declare interface PageParam {
  43. pageSize?: number
  44. pageNo?: number
  45. };
  46. }