wix-style-react
Version:
25 lines (20 loc) • 544 B
TypeScript
import { BaseDriver } from 'wix-ui-test-utils/driver-factory';
interface ReorderIds {
removedId: number | string;
addedId: number | string;
}
interface ReorderDataHooks{
from: string;
to: string;
}
interface DraggableItemDetails {
dataHook: string
}
export interface SortableListDriver extends BaseDriver {
/**
* @deprecated use reorderByDataHook
*/
reorder: (ids: ReorderIds) => void;
reorderByDataHook: (dataHooks: ReorderDataHooks) => void;
getItemCurrentPosition: (itemDetails: DraggableItemDetails) => number
}