diff --git a/src/schema/fields.ts b/src/schema/fields.ts index f9d0293e..7fff7829 100644 --- a/src/schema/fields.ts +++ b/src/schema/fields.ts @@ -431,7 +431,7 @@ export type FieldType = T extends PureType<'array'> & { of: Array } ? Array> : T extends PureType<'block'> - ? BlockType[] + ? BlockType : T extends PureType<'boolean'> ? boolean : T extends diff --git a/src/types/block.ts b/src/types/block.ts index f2d0cebc..2da6b51c 100644 --- a/src/types/block.ts +++ b/src/types/block.ts @@ -1,10 +1,10 @@ -interface BlockMarkDefs { +interface MarkDefs { _key: string _type: string [key: string]: string } -interface BlockChildren { +interface Children { _key: string _type: string marks: string[] @@ -14,9 +14,9 @@ interface BlockChildren { export interface BlockType { _key: string _type: string - children: BlockChildren[] + children: Children[] level?: number listItem?: string - markDefs: BlockMarkDefs[] + markDefs: MarkDefs[] style: string }