View as Markdown

API reference: @salmonui/rich-text

BlockPatchinterface

import type { BlockPatch } from '@salmonui/rich-text';
interface BlockPatch {
    type?: BlockType;
    props?: Record<string, unknown>;
    content?: InlineContent[];
    children?: Block[];
}

A partial update for updateBlock: props merge, the rest replaces.

BlockPatch members (4)
NameSignatureDescription
typeoptionaltype?: BlockType;
propsoptionalprops?: Record<string, unknown>;
contentoptionalcontent?: InlineContent[];
childrenoptionalchildren?: Block[];