UNPKG

@scalar/api-client

Version:

the open source API testing client

9 lines 635 B
import type { WorkspaceStore } from '../../store/index.js'; import type { ActiveEntitiesStore } from '../../store/active-entities.js'; import type { DraggingItem, HoveredItem } from '@scalar/draggable'; /** Create DnD handlers */ export declare function dragHandlerFactory(activeWorkspace: ActiveEntitiesStore['activeWorkspace'], { collections, collectionMutators, tags, tagMutators, workspaceMutators }: WorkspaceStore): { handleDragEnd: (draggingItem: DraggingItem, hoveredItem: HoveredItem) => void; isDroppable: (draggingItem: DraggingItem, hoveredItem: HoveredItem) => boolean; }; //# sourceMappingURL=handle-drag.d.ts.map