@umbraco-cms/backoffice
    Preparing search index...

    Type Alias NodeType<Type, TAttributes, NodeMarkType, TContent>

    A node type is either a JSON representation of a node or a Prosemirror node instance

    type NodeType<
        Type extends string
        | { name: string } = any,
        TAttributes extends undefined | Record<string, any> = any,
        NodeMarkType extends MarkType = any,
        TContent extends (NodeType | TextType)[] = any,
    > = {
        attrs: TAttributes;
        content?: TContent;
        marks?: NodeMarkType[];
        type: Type;
    }

    Type Parameters

    • Type extends string | { name: string } = any
    • TAttributes extends undefined | Record<string, any> = any
    • NodeMarkType extends MarkType = any
    • TContent extends (NodeType | TextType)[] = any
    Index

    Properties

    content?: TContent
    marks?: NodeMarkType[]
    type: Type