Rich text / foldkit-richtext-dom/editor-bundle
EditorView
const · packages/richtext-dom/src/editor-bundle.ts:81
const EditorView: Schema.Struct<{ readonly document: Schema.Struct<{ readonly version: Schema.Literal<1>; readonly children: Schema.$Array<Schema.Union<readonly [Schema.Struct<{ readonly type: Schema.Literal<"Paragraph">; readonly id: Schema.brand<Schema.NonEmptyString, "foldkit-richtext/NodeId">; readonly children: Schema.$Array<Schema.Struct<{ readonly type: Schema.Literal<"Text">; readonly id: Schema.brand<Schema.NonEmptyString, "foldkit-richtext/NodeId">; readonly text: Schema.String; readonly marks: Schema.$Array<Schema.Union<readonly [Schema.NonEmptyString, Schema.Struct<{ readonly name: Schema.NonEmptyString; readonly props: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>; }>]>>; }>>; }>, Schema.Struct<{ readonly type: Schema.Literal<"Heading">; readonly id: Schema.brand<Schema.NonEmptyString, "foldkit-richtext/NodeId">; readonly level: Schema.Literals<readonly [1, 2, 3, 4, 5, 6]>; readonly children: Schema.$Array<Schema.Struct<{ readonly type: Schema.Literal<"Text">; readonly id: Schema.brand<Schema.NonEmptyString, "foldkit-richtext/NodeId">; readonly text: Schema.String; readonly marks: Schema.$Array<Schema.Union<readonly [Schema.NonEmptyString, Schema.Struct<{ readonly name: Schema.NonEmptyString; readonly props: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>; }>]>>; }>>; }>, Schema.Struct<{ readonly type: Schema.Literal<"Node">; readonly kind: Schema.NonEmptyString; reado …;Its type
type EditorView = typeof EditorView.TypeWhat the child reads: the parent's document passes through, never stored.