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.

44 lines
1.2KB

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