UNPKG

569 BTypeScriptView Raw
1import type { ReactElement, RefObject } from 'react';
2import type { DragPreviewOptions, DragSourceOptions } 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>;