plugins.d.ts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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 IsAny<T> = 0 extends 1 & T ? true : false
  5. type InjectionType<A extends Plugin> = IsAny<A> extends true ? unknown : A extends Plugin<infer T> ? Decorate<T> : unknown
  6. type NuxtAppInjections =
  7. InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/revive-payload.client.js").default> &
  8. InjectionType<typeof import("../../node_modules/nuxt/dist/head/runtime/plugins/unhead.js").default> &
  9. InjectionType<typeof import("../../node_modules/nuxt/dist/pages/runtime/plugins/router.js").default> &
  10. InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/payload.client.js").default> &
  11. InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/navigation-repaint.client.js").default> &
  12. InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/check-outdated-build.client.js").default> &
  13. InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/revive-payload.server.js").default> &
  14. InjectionType<typeof import("../../node_modules/nuxt/dist/app/plugins/chunk-reload.client.js").default> &
  15. InjectionType<typeof import("../../node_modules/nuxt/dist/pages/runtime/plugins/prefetch.client.js").default> &
  16. InjectionType<typeof import("../../plugins/element-plus.js").default> &
  17. InjectionType<typeof import("../../plugins/request.js").default> &
  18. InjectionType<typeof import("../../plugins/pinia.js").default> &
  19. InjectionType<typeof import("../../node_modules/nuxt/dist/pages/runtime/plugins/prerender.server.js").default>
  20. declare module '#app' {
  21. interface NuxtApp extends NuxtAppInjections { }
  22. interface NuxtAppLiterals {
  23. pluginName: 'nuxt:revive-payload:client' | 'nuxt:head' | 'nuxt:router' | 'nuxt:payload' | 'nuxt:revive-payload:server' | 'nuxt:chunk-reload' | 'nuxt:global-components' | 'nuxt:prefetch'
  24. }
  25. }
  26. declare module 'vue' {
  27. interface ComponentCustomProperties extends NuxtAppInjections { }
  28. }
  29. export { }