UNPKG

559 BTypeScriptView Raw
1import { RefObject, ReactElement } from 'react';
2import { DragSourceOptions, DragPreviewOptions } from './options';
3export declare type ConnectableElement = RefObject<any> | ReactElement | Element | null;
4export declare type DragElementWrapper<Options> = (elementOrNode: ConnectableElement, options?: Options) => ReactElement | null;
5export declare type ConnectDragSource = DragElementWrapper<DragSourceOptions>;
6export declare type ConnectDropTarget = DragElementWrapper<any>;
7export declare type ConnectDragPreview = DragElementWrapper<DragPreviewOptions>;