Type 'BlockContent | undefined' is not assignable to type 'PortableTextBlock<PortableTextMarkDefinition, ArbitraryTypedObject | PortableTextSpan, string, string>[] | undefined'
Steps to reproduce
Export using guide and type query as described in module docs
const { data } = await useSanityQuery<Type>(query)
Version
@nuxtjs/sanity": "^1.11.3 @sanity/client": "^6.18.0 nuxt: 3.11.2
Reproduction
Used the new export types cli: Link
Can set up a repo purely for reproduction if necessary
Link: [ ] https://stackblitz.com/edit/nuxt-sanity [ ] GitHub repository
What is expected?
Types should match
What is actually happening?
Type 'BlockContent | undefined' is not assignable to type 'PortableTextBlock<PortableTextMarkDefinition, ArbitraryTypedObject | PortableTextSpan, string, string>[] | undefined'
Steps to reproduce
Export using guide and type query as described in module docs
const { data } = await useSanityQuery<Type>(query)
Additional information
Exported type looks like this:
Checklist