You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the new export types CLI there is a conflict with what is typed here.Having looked at the type im not quite sure how to fix it, so adding an issue. Report copied from @nuxtjs/sanity where I first created the issue
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)
When using the new export types CLI there is a conflict with what is typed here.Having looked at the type im not quite sure how to fix it, so adding an issue. Report copied from @nuxtjs/sanity where I first created the issue
Version
@nuxtjs/sanity": "^1.11.3
@sanity/client": "^6.18.0
Nuxt: 3.11.2
Reproduction
Used the new export types cli: Link
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:
The text was updated successfully, but these errors were encountered: