vite-env.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* eslint-disable ts/no-explicit-any */
  2. /// <reference types="vite/client" />
  3. /// <reference types="vite-svg-loader" />
  4. /// <reference types="vue-dompurify-html" />
  5. declare module '*.vue' {
  6. import type { DefineComponent } from 'vue'
  7. const component: DefineComponent<any, any, any>
  8. export default component
  9. }
  10. export { }
  11. declare module '@vue/runtime-core' {
  12. interface ComponentCustomProperties {
  13. $gettext: (msgid: string, parameters?: {
  14. [key: string]: string
  15. }, disableHtmlEscaping?: boolean) => string
  16. $pgettext: (context: string, msgid: string, parameters?: {
  17. [key: string]: string
  18. }, disableHtmlEscaping?: boolean) => string
  19. $ngettext: (msgid: string, plural: string, n: number, parameters?: {
  20. [key: string]: string
  21. }, disableHtmlEscaping?: boolean) => string
  22. $npgettext: (context: string, msgid: string, plural: string, n: number, parameters?: {
  23. [key: string]: string
  24. }, disableHtmlEscaping?: boolean) => string
  25. }
  26. }
  27. declare module 'axios' {
  28. interface AxiosRequestConfig {
  29. crypto?: boolean
  30. skipErrHandling?: boolean
  31. }
  32. }