Edge<D, S, E>: {
    Class: Edge.Class<D, S, E>;
    TypeGuard: Edge.TypeGuard<D, S>;
}

Represents an edge type. All edge types must be subtypes of BaseEdge. An edge type has 5 components:

Type Parameters

  • D extends BaseEdge.Data

    Type parameter for the data contained in the edge type.

  • S extends BaseEdge.ScratchData

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

  • E extends BaseEdge.Class<D, S>

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

Type declaration