@mathjax/src
    Preparing search index...

    Interface NodeClass<N, C>

    The generic Node class interface

    interface NodeClass<N extends Node<N, C>, C extends NodeClass<N, C>> {
        new NodeClass(
            factory: NodeFactory<N, C>,
            properties?: PropertyList,
            children?: N[],
        ): N;
    }

    Type Parameters

    • N extends Node<N, C>

      The node type being created

    • C extends NodeClass<N, C>

      The node class for N (the constructor rather than instance of the class)

    Hierarchy (View Summary)

    Index

    Constructors

    Constructors

    • Parameters

      • factory: NodeFactory<N, C>

        The NodeFactory to use to create new nodes when needed

      • Optionalproperties: PropertyList

        Any properties to be added to the node, if any

      • Optionalchildren: N[]

        The initial child nodes, if any

      Returns N

      The newly created node