plugins.d.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132
  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. declare module '#app' {
  17. interface NuxtApp extends NuxtAppInjections { }
  18. interface NuxtAppLiterals {
  19. pluginName: 'nuxt:revive-payload:client' | 'nuxt:head' | 'nuxt:router' | 'nuxt:payload' | 'nuxt:revive-payload:server' | 'nuxt:chunk-reload' | 'nuxt:global-components' | 'nuxt:prefetch'
  20. }
  21. }
  22. declare module 'vue' {
  23. interface ComponentCustomProperties extends NuxtAppInjections { }
  24. }
  25. export { }