react-dnd
Version:
Drag and Drop for React
4 lines (3 loc) • 384 B
TypeScript
import type { DragDropManager, DragSource, DropTarget, Identifier, SourceType, TargetType, Unsubscribe } from 'dnd-core';
export declare function registerTarget(type: TargetType, target: DropTarget, manager: DragDropManager): [Identifier, Unsubscribe];
export declare function registerSource(type: SourceType, source: DragSource, manager: DragDropManager): [Identifier, Unsubscribe];