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

OutMessage

type · packages/richtext-dom/src/editor-bundle.ts:93

type OutMessage =
  | {
      readonly _tag: 'Edited'
      readonly state: RichText.EditorState
      readonly changeSet: RichText.ChangeSet
      readonly transactions: ReadonlyArray<RichText.Transaction>
    }
  | {
      readonly _tag: 'Replaced'
      readonly state: RichText.EditorState
      readonly changeSet: RichText.ChangeSet
    }
  | {
      readonly _tag: 'Rejected'
      readonly error: string
    }

The committed edit, or the diagnostic that refused it.