UNPKG

577 BTypeScriptView Raw
1/**
2 * Keeps track of a directed graph traversal that needs to detect cycles.
3 */
4export declare enum VisitorState {
5 /**
6 * We have not visited the node yet.
7 */
8 Unvisited = 0,
9 /**
10 * We have visited the node, but have not finished traversing its references yet.
11 * If we reach a node that is already in the `Visiting` state, this means we have
12 * encountered a cyclic reference.
13 */
14 Visiting = 1,
15 /**
16 * We are finished vising the node and all its references.
17 */
18 Visited = 2
19}
20//# sourceMappingURL=VisitorState.d.ts.map
\No newline at end of file