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

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

Type Parameters

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.

  • Type guard for the scratch data object of the edge.

    Parameters

    Returns sData is S

    Whether the scratch data object is compatible with the edge type.