UNPKG

react-dnd

Version:

Drag and Drop for React

8 lines (7 loc) 569 B
import type { ReactElement, RefObject } from 'react'; import type { DragPreviewOptions, DragSourceOptions } from './options'; export declare type ConnectableElement = RefObject<any> | ReactElement | Element | null; export declare type DragElementWrapper<Options> = (elementOrNode: ConnectableElement, options?: Options) => ReactElement | null; export declare type ConnectDragSource = DragElementWrapper<DragSourceOptions>; export declare type ConnectDropTarget = DragElementWrapper<any>; export declare type ConnectDragPreview = DragElementWrapper<DragPreviewOptions>;