tuil
ReferencePackages@mwillbanks/tuil-editorAPI

RichNode

interface exported by @mwillbanks/tuil-editor.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-editor.

export interface RichNode {
  readonly [key: string]: unknown;
  readonly type: RichNodeType;
  readonly text?: string;
  readonly level?: number;
  readonly attributes?: Readonly<Record<string, unknown>>;
  readonly marks?: readonly RichMark[];
  readonly children?: readonly RichNode[];
}

Members

MemberTypeRequiredDescriptionRelated types
typeRichNodeTypeYesThe type member uses the RichNodeType contract.RichNodeType
textstring | undefinedNoThe text member uses the string | undefined contract.
levelnumber | undefinedNoThe level member uses the number | undefined contract.
attributesReadonly<Record<string, unknown>> | undefinedNoThe attributes member uses the Readonly<Record<string, unknown>> | undefined contract.
marksreadonly RichMark[] | undefinedNoThe marks member uses the readonly RichMark[] | undefined contract.RichMark
childrenreadonly RichNode[] | undefinedNoThe children member uses the readonly RichNode[] | undefined contract.RichNode

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-editor

On this page