UNPKG

@atlaskit/pragmatic-drag-and-drop-hitbox

Version:

An optional package for Pragmatic drag and drop that enables the attaching of interaction information to a drop target

11 lines (10 loc) • 449 B
import type { Input } from '@atlaskit/pragmatic-drag-and-drop/types'; import type { Edge } from './types'; /** * Adds a unique `Symbol` to the `userData` object. Use with `extractClosestEdge()` for type safe lookups. */ export declare function attachClosestEdge(userData: Record<string | symbol, unknown>, { element, input, allowedEdges, }: { element: Element; input: Input; allowedEdges: Edge[]; }): Record<string | symbol, unknown>;