vite-env.d.ts 603 B

1234567891011121314151617181920
  1. /// <reference types="vite/client" />
  2. type DeepWriteable<T> = { -readonly [P in keyof T]: DeepWriteable<T[P]> };
  3. declare type Recordable<T = any> = Record<string, T>;
  4. declare type I18nGlobalTranslation = {
  5. (key: string): string;
  6. (key: string, locale: string): string;
  7. (key: string, locale: string, list: unknown[]): string;
  8. (key: string, locale: string, named: Record<string, unknown>): string;
  9. (key: string, list: unknown[]): string;
  10. (key: string, named: Record<string, unknown>): string;
  11. };
  12. interface ImportMetaEnv {
  13. VITE_APP_SDK: string;
  14. }
  15. declare const $t: I18nGlobalTranslation;