harlan-zw / nuxt-schema-org

The quickest and easiest way to build Schema.org graphs for Nuxt.
https://nuxtseo.com/schema-org
140 stars 14 forks source link

Types for all define schema methods return `any` #60

Open asokawotulo opened 1 hour ago

asokawotulo commented 1 hour ago

Describe the bug

When hovering over the defineProduct function to get the type definition it returns any Screen Shot 2024-09-20 at 1  40 48

Changing the type import in .nuxt/types/imports.d.ts to import from ../../node_modules/@unhead/schema-org instead of ../../node_modules/@unhead/schema-org/vue temporarily fixes the issue Screen Shot 2024-09-20 at 1  43 12 Screen Shot 2024-09-20 at 1  43 39

Reproduction

No response

System / Nuxt Info

No response

harlan-zw commented 1 hour ago

Hi, can you confirm the module version and unhead version you're using?

pnpm why @unhead/schema-org pnpm why nuxt-schema-org

asokawotulo commented 1 hour ago

I tried to initialize a new project and still had the same issue.

I'm running the following version:

nuxt-schema-org 3.4.0
@unhead/schema-org 1.11.6