UNPKG

666 BTypeScriptView Raw
1import { TargetType } from 'dnd-core';
2import { DndOptions, DropTargetSpec, DropTargetCollector, DndComponentEnhancer } from './types';
3/**
4 * @param type The accepted target type
5 * @param spec The DropTarget specification
6 * @param collect The props collector function
7 * @param options Options
8 */
9export declare function DropTarget<RequiredProps, CollectedProps = any, DragObject = any, DropResult = any>(type: TargetType | ((props: RequiredProps) => TargetType), spec: DropTargetSpec<RequiredProps, DragObject, DropResult>, collect: DropTargetCollector<CollectedProps, RequiredProps>, options?: DndOptions<RequiredProps>): DndComponentEnhancer<CollectedProps>;