UNPKG

@endo/compartment-mapper

Version:

The compartment mapper assembles Node applications in a sandbox

23 lines 488 B
/** * Types for the `generic-graph` module * * @module */ /** * A node in a `GenericGraph`. */ export type GenericGraphNode = string | { toString: () => string; }; /** * Context used for shortest-path traversal algorithm * * @template T The type of nodes in the graph * @internal */ export interface TraversalContext<T extends GenericGraphNode = string> { paths: Map<T, T[]>; predecessors: Map<T, T>; queue: Set<T>; } //# sourceMappingURL=generic-graph.d.ts.map