UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

13 lines 487 B
import type { ITreeNodeLike } from "../tree-model.js"; /** * @public * Iterates over the whole tree, in a depth first fashion. * * @param node - The start point. * @param callback - Called for each node, including the start point. * * @remarks * See {@link treeIterate}. */ export declare function treeIterate<TNode extends ITreeNodeLike<TNode>>(node: TNode, callback: (node: TNode, parent: TNode | null, depth: number) => void): void; //# sourceMappingURL=tree-iterate.d.ts.map