Commit c0e7860
committed
chore: add proper types to OgImage Package.d.vue.ts workaround
It appears this file was here to break a circular type resolution. `nuxt-og-image` generates a type
declaration that imports `Package.vue type`, which needs auto-import globals from `nuxt.d.ts`, which
needs the `nuxt-og-image` type declaration, creating a cycle.
The old file used `any` which was a band-aid. I couldn't come up with a way
to remove this file entirely, but this at least types the component props
so consumers still get real type-checking.1 parent 5d279f7 commit c0e7860
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
2 | 15 | | |
3 | 16 | | |
0 commit comments