UNPKG

@minoru/react-dnd-treeview

Version:

A draggable / droppable React-based treeview component.

3 lines (2 loc) 162 B
import type { NodeModel } from "../types"; export declare const isAncestor: (tree: NodeModel[], sourceId: NodeModel["id"], targetId: NodeModel["id"]) => boolean;