[READ-ONLY] a fast, modern browser for the npm registry

chore: add proper types to OgImage `Package.d.vue.ts` workaround (#1217)

authored by philippeserhal.com and committed by

GitHub eeeb6b61 62841f95

+14 -1
+14 -1
app/components/OgImage/Package.d.vue.ts
··· 1 - declare const _default: any 1 + // This type declaration file is required to break a circular type resolution in vue-tsc. 2 + // 3 + // nuxt-og-image generates a type declaration (.nuxt/module/nuxt-og-image.d.ts) that imports 4 + // this component's type. This creates a cycle: nuxt.d.ts → nuxt-og-image.d.ts → Package.vue → 5 + // needs auto-import globals from nuxt.d.ts. Without this file, vue-tsc resolves the component 6 + // before the globals are available, so all auto-imports (computed, toRefs, useFetch, etc.) fail. 7 + 8 + import type { DefineComponent } from 'vue' 9 + 10 + declare const _default: DefineComponent<{ 11 + name: string 12 + version: string 13 + primaryColor?: string 14 + }> 2 15 3 16 export default _default