SPeCS Packages Documentation
    Preparing search index...

    Represents the type guard object for an edge type. For example, BaseEdge.TypeGuard is an Edge.TypeGuard.

    interface TypeGuard<D extends BaseEdge.Data, S extends BaseEdge.ScratchData> {
        isDataCompatible(data: BaseEdge.Data): data is D;
        isScratchDataCompatible(sData: BaseEdge.ScratchData): sData is S;
    }

    Type Parameters

    Index

    Methods

    • Type guard for the data object of the edge.

      Parameters

      Returns data is D

      Whether the data object is compatible with the edge type.