Rich text / foldkit-richtext-dom/editor-bundle

ParentMessage

const · packages/richtext-dom/src/editor-bundle.ts:649

const ParentMessage: MessageUnion<{ readonly GotEditorMessage: { readonly message: Schema.Codec<{ readonly _tag: "Selected"; readonly selection: { readonly type: "Range"; readonly anchor: { readonly node: string & Brand<"foldkit-richtext/NodeId">; readonly offset: number; readonly affinity: "before" | "after"; }; readonly focus: { readonly node: string & Brand<"foldkit-richtext/NodeId">; readonly offset: number; readonly affinity: "before" | "after"; }; } | { readonly type: "Node"; readonly node: string & Brand<"foldkit-richtext/NodeId">; } | null; } | { readonly _tag: "Typed"; readonly text: string; } | { readonly _tag: "Entered"; } | { readonly _tag: "Pasted"; readonly slice: { readonly version: 1; readonly blocks: readonly ({ readonly type: "Paragraph"; readonly id: string & Brand<"foldkit-richtext/NodeId">; readonly children: readonly { readonly type: "Text"; readonly id: string & Brand<"foldkit-richtext/NodeId">; readonly text: string; readonly marks: readonly (string | { readonly name: string; readonly props?: { readonly [x: string]: Schema.Json; }; })[]; }[]; } | { readonly type: "Heading"; readonly id: string & Brand<"foldkit-richtext/NodeId">; readonly level: 1 | 2 | 3 | 4 | 6 | 5; readonly children: readonly { readonly type: "Text"; readonly id: string & Brand<"foldkit-richtext/NodeId">; readonly text: string; readonly marks: readonly (string | { readonly name: string; readonly props?: { readonly [x: string]: Schema.Json; }; })[]; }[]; } | { readonly type: "Unknown"; readonly id: string …;

Its type

type ParentMessage = typeof ParentMessage.Type