SPeCS Packages Documentation
    Preparing search index...

    Type Alias Graph<D, S, G>

    Represents a graph type. All graph types must be subtypes of BaseGraph. A graph type has 5 components:

    type Graph<
        D extends BaseGraph.Data,
        S extends BaseGraph.ScratchData,
        G extends BaseGraph.Class<D, S>,
    > = {
        Class: Graph.Class<D, S, G>;
        TypeGuard: Graph.TypeGuard<D, S>;
    }

    Type Parameters

    • D extends BaseGraph.Data

      Type parameter for the data contained in the graph type.

    • S extends BaseGraph.ScratchData

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

    • G extends BaseGraph.Class<D, S>

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

    Index

    Properties

    Properties

    Class: Graph.Class<D, S, G>

    The class with functionality for the graph type. See Graph.Class.

    TypeGuard: Graph.TypeGuard<D, S>

    The type guard object for the graph type. See Graph.TypeGuard.