UNPKG

@loken/hierarchies

Version:

Library for working with hierarchies of identifiers and identifiable objects.

21 lines 886 B
import { type Some } from '@loken/utilities'; import { type GraphTraversal, type NextNodes, type SignalNodes, type TraversalType } from './graph.types.js'; /** * Generate a sequence of nodes by traversing the provided `roots` according to the options. */ export declare const traverseGraph: <TNode>(options: GraphTraversal<TNode>) => Generator<TNode, void, undefined>; /** @internalexport */ export declare function traverseSignalGraph<TNode>(options: { roots: Some<TNode>; signal: SignalNodes<TNode>; type?: TraversalType; detectCycles?: boolean; }): Generator<TNode, void, unknown>; /** @internalexport */ export declare function traverseFullGraph<TNode>(options: { roots: Some<TNode>; next: NextNodes<TNode>; type?: TraversalType; detectCycles?: boolean; }): Generator<NonNullable<TNode>, void, unknown>; //# sourceMappingURL=graph-traverse.d.ts.map