Skip to content

Commit

Permalink
refactor(types): limit supported types in block types .of to objects …
Browse files Browse the repository at this point in the history
…and refs
  • Loading branch information
skogsmaskin committed Dec 20, 2022
1 parent afd01e2 commit cb867b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/types/src/schema/definition/type/block.ts
Expand Up @@ -51,7 +51,7 @@ export interface BlockDefinition extends BaseSchemaDefinition {
styles?: BlockStyleDefinition[]
lists?: BlockListDefinition[]
marks?: BlockMarksDefinition
of?: ArrayOfType[]
of?: ArrayOfType<'object' | 'reference'>[]
initialValue?: InitialValueProperty<any, any[]>
options?: BlockOptions
validation?: ValidationBuilder<BlockRule, any[]>
Expand Down

0 comments on commit cb867b8

Please sign in to comment.