UNPKG

@naisutech/react-tree

Version:

a hierarchical tree component for React written in Typescript

5 lines (4 loc) 421 B
import type { TreeNode, TreeNodeList } from '../Tree'; export declare const getDescendantByParent: (nodes: TreeNodeList, currentContainer: TreeNode) => TreeNodeList; export declare const getAllDescendantsForCurrentContainers: (nodeList: TreeNodeList, containerItems: TreeNodeList) => Array<TreeNodeList>; export declare const getChildrenByParent: (nodes: TreeNodeList, parentId?: number | string | null) => TreeNodeList;