UNPKG

@idui/react-tree

Version:
28 lines (27 loc) 1.14 kB
import { Key } from 'react'; import { CheckedKeysObject } from './components/Leaf/types'; export declare const setValuesRecursive: <NodeObjectType extends { childNodes?: NodeObjectType[]; disabled?: boolean; id: string; }>(node: NodeObjectType, checkedKeys: CheckedKeysObject, value: boolean) => void; export declare const normalizeTree: <NodeObjectType extends { childNodes?: NodeObjectType[]; disabled?: boolean; id: string; }>(nodes: NodeObjectType[], checkedKeys: CheckedKeysObject) => void; export declare const findNodeDeep: <NodeObjectType extends { childNodes?: NodeObjectType[]; disabled?: boolean; id: string; }>(nodes: NodeObjectType[], id: Key) => NodeObjectType; export declare const isAllCheckedDeep: <NodeObjectType extends { childNodes?: NodeObjectType[]; disabled?: boolean; id: string; }>(nodes: NodeObjectType[], checkedKeys: CheckedKeysObject) => boolean; export declare const isAnyCheckedDeep: <NodeObjectType extends { childNodes?: NodeObjectType[]; disabled?: boolean; id: string; }>(nodes: NodeObjectType[], checkedKeys: CheckedKeysObject) => boolean;