plugins.d.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // Generated by Nuxt'
  2. import type { Plugin } from '#app'
  3. type Decorate<T extends Record<string, any>> = { [K in keyof T as K extends string ? `$${K}` : never]: T[K] }
  4. type InjectionType<A extends Plugin> = A extends {default: Plugin<infer T>} ? Decorate<T> : unknown
  5. type NuxtAppInjections =
  6. InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/revive-payload.client.js")> &
  7. InjectionType<typeof import("../../node_modules/nuxt/dist/head/runtime/plugins/unhead.js")> &
  8. InjectionType<typeof import("../../node_modules/nuxt/dist/pages/runtime/plugins/router.js")> &
  9. InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/payload.client.js")> &
  10. InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/navigation-repaint.client.js")> &
  11. InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js")> &
  12. InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/revive-payload.server.js")> &
  13. InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/chunk-reload.client.js")> &
  14. InjectionType<typeof import("../../node_modules/nuxt/dist/pages/runtime/plugins/prefetch.client.js")> &
  15. InjectionType<typeof import("../../plugins/element-plus.js")> &
  16. InjectionType<typeof import("../../plugins/request.js")> &
  17. InjectionType<typeof import("../../plugins/globals.js")> &
  18. InjectionType<typeof import("../../plugins/pinia.js")>
  19. declare module '#app' {
  20. interface NuxtApp extends NuxtAppInjections { }
  21. interface NuxtAppLiterals {
  22. pluginName: 'nuxt:revive-payload:client' | 'nuxt:head' | 'nuxt:router' | 'nuxt:payload' | 'nuxt:revive-payload:server' | 'nuxt:chunk-reload' | 'nuxt:global-components' | 'nuxt:prefetch'
  23. }
  24. }
  25. declare module 'vue' {
  26. interface ComponentCustomProperties extends NuxtAppInjections { }
  27. }
  28. export { }