@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration
Version:
An optional Pragmatic drag and drop package that enables rapid migration from react-beautiful-dnd to Pragmatic drag and drop
12 lines (11 loc) • 539 B
TypeScript
import type { DraggableLocation } from 'react-beautiful-dnd';
import type { DragLocation } from '@atlaskit/pragmatic-drag-and-drop/types';
/**
* Derives a `DraggableLocation` (`react-beautiful-dnd`)
* from a `DragLocation` (`@atlaskit/pragmatic-drag-and-drop`).
*/
export declare function getDraggableLocation(location: DragLocation): DraggableLocation | null;
/**
* Checks if two `DraggableLocation` values are equivalent.
*/
export declare function isSameLocation(a: DraggableLocation | null, b: DraggableLocation | null): boolean;