nuxt-jsonld icon indicating copy to clipboard operation
nuxt-jsonld copied to clipboard

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

Open leopoldkristjansson opened this issue 1 year ago • 1 comments

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!

leopoldkristjansson avatar Jan 01 '24 21:01 leopoldkristjansson