UNPKG

@deepdub/react-arborist

Version:
9 lines (8 loc) 328 B
import { RefObject } from "react"; import { ConnectDropTarget } from "react-dnd"; import { NodeApi } from "../interfaces/node-api"; export type DropResult = { parentId: string | null; index: number | null; }; export declare function useDropHook(el: RefObject<HTMLElement | null>, node: NodeApi<any>): ConnectDropTarget;