Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I import the JsonLD TypeScript type from 'nuxt-jsonld' #1363

Open
leopoldkristjansson opened this issue Jan 1, 2024 · 1 comment
Open

Comments

@leopoldkristjansson
Copy link

I am wondering what the correct way to import the JsonLD or JsonLDFunc types are?

This does not work:

import type { JsonLD } from 'nuxt-jsonld'

This does, but is probably not the best way?

import type JsonLD from 'nuxt-jsonld/dist/types/index.d'

Thanks!

@TheDutchCoder
Copy link

You'll have to use import type { Thing } from 'schema-dts' or import type { Graph } from 'schema-dts', etc.

ymmooot added a commit that referenced this issue Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants