danielroe/sanity-typed-queries

fix: decorators have another type

Realetive opened this issue ยท 4 comments

๐Ÿ› The bug
Hi! Many thanks for your lib.

Decorators in type: 'block' have another type: https://www.sanity.io/docs/customization#decorators-e6401a8fe843

I think, that it's look like Array<BlockStyle> instead Array<Field & { blockEditor?: BlockEditor }>

@Realetive Thanks for catching this!

Please add name to BlockStyle yet. For example in this case:

annotations: [
  {
    title: 'URL',
    name: 'link',
    type: 'object',
    fields: [
      {
        title: 'URL',
        name: 'href',
        type: 'url'
      }
    ]
  }
]

Any better? ๐Ÿ˜†

๐Ÿ‘Œ Perfect! Many thanks!