@loken/hierarchies
Version:
Library for working with hierarchies of identifiers and identifiable objects.
16 lines • 648 B
TypeScript
import type { NextElement, SequenceTraversal, SignalElement } from './sequence.types.ts';
/**
* Flatten a sequence of elements starting with the `first` element and traversing according to the options.
*/
export declare const flattenSequence: <TEl>(options: SequenceTraversal<TEl>) => TEl[];
/** @internalexport */
export declare const flattenSignalSequence: <TEl>(options: {
first: TEl | undefined;
signal: SignalElement<TEl>;
}) => TEl[];
/** @internalexport */
export declare const flattenFullSequence: <TEl>(options: {
first: TEl | undefined;
next: NextElement<TEl>;
}) => TEl[];
//# sourceMappingURL=sequence-flatten.d.ts.map