UNPKG

@minoru/react-dnd-treeview

Version:

A draggable / droppable React-based treeview component.

3 lines (2 loc) 228 B
import type { NodeModel, NativeDragItem, TreeState } from "../types"; export declare const isDroppable: <T>(dragSource: NodeModel<T> | NativeDragItem | null, dropTargetId: NodeModel["id"], treeContext: TreeState<T>) => boolean;