Rich text / foldkit-richtext
TextBlock
const · packages/richtext/src/transaction.ts:75
const TextBlock: Schema.Union<
readonly [
Schema.Struct<{ readonly type: Schema.Literal<'Paragraph'> }>,
Schema.Struct<{
readonly type: Schema.Literal<'Heading'>
readonly level: Schema.Literals<readonly [1, 2, 3, 4, 5, 6]>
}>,
]
>Its type
type TextBlock = typeof TextBlock.TypeWhat a text block retypes to: a paragraph, or a heading at a level. Its runs are its own and survive the change; only the block's type does not.