TransactionOp
type TransactionOp = | { from: number; insert: TextSpan[]; kind: "replaceText"; path: BlockPath; to: number;} | { kind: "setSelection"; selection: Selection;} | { kind: "splitBlock"; newAttrs?: Record<string, unknown>; newType?: string; offset: number; path: BlockPath;} | { kind: "joinBackward"; path: BlockPath;} | { attrs?: Record<string, unknown>; kind: "setBlockType"; path: BlockPath; type: string;} | { attrs: Record<string, unknown>; kind: "setBlockAttrs"; path: BlockPath;} | { block: BlockNode; kind: "insertBlock"; path: BlockPath;} | { kind: "removeBlock"; path: BlockPath;} | { from: BlockPath; kind: "moveBlock"; to: BlockPath;} | { from: number; kind: "toggleMark"; mark: MarkInstance; path: BlockPath; to: number;} | { from: number; kind: "addMark"; mark: MarkInstance; path: BlockPath; to: number;} | { from: number; kind: "removeMark"; mark: MarkInstance; path: BlockPath; to: number;};Defined in: transaction.ts:38