vite-env.d.ts 856 B

1234567891011121314151617181920212223242526272829303132333435
  1. /// <reference types="vite/client" />
  2. declare module '*.vue' {
  3. import type { DefineComponent } from 'vue'
  4. const component: DefineComponent<{}, {}, unknown>
  5. export default component
  6. }
  7. interface ComponentConstructor<P = any> {
  8. new (...args: any[]): {
  9. $props: P
  10. }
  11. }
  12. interface ImportMetaEnv {
  13. readonly VITE_SERVER: string
  14. }
  15. interface ImportMeta {
  16. readonly env: ImportMetaEnv
  17. }
  18. type PartialPart<T extends {}, K extends keyof T> = Omit<T, K> &
  19. Partial<Pick<T, K>>
  20. declare type I18nGlobalTranslation = {
  21. (key: string): string
  22. (key: string, locale: string): string
  23. (key: string, locale: string, list: unknown[]): string
  24. (key: string, locale: string, named: Record<string, unknown>): string
  25. (key: string, list: unknown[]): string
  26. (key: string, named: Record<string, unknown>): string
  27. }
  28. declare const $t: I18nGlobalTranslation