SPeCS Packages Documentation
    Preparing search index...

    Type Alias Node<D, S, N>

    Represents a node type. All node types must be subtypes of BaseNode. An node type has 5 components:

    type Node<
        D extends BaseNode.Data,
        S extends BaseNode.ScratchData,
        N extends BaseNode.Class<D, S>,
    > = {
        Class: Node.Class<D, S, N>;
        TypeGuard: Node.TypeGuard<D, S>;
    }

    Type Parameters

    • D extends BaseNode.Data

      Type parameter for the data contained in the node type.

    • S extends BaseNode.ScratchData

      Type parameter for the scratch data contained in the node type.

    • N extends BaseNode.Class<D, S>

      Type parameter for the instance of the class with functionality for this node type.

    Index

    Properties

    Properties

    Class: Node.Class<D, S, N>

    The class with functionality for the node type. See Node.Class.

    TypeGuard: Node.TypeGuard<D, S>

    The type guard object for the node type. See Node.TypeGuard.