@hello-pangea/dnd
Version:
Beautiful and accessible drag and drop for lists with React
13 lines (9 loc) • 389 B
text/typescript
import type { DraggableId } from '../../types';
export type Unregister = () => void;
export type Register = (id: DraggableId, focus: () => void) => Unregister;
export interface FocusMarshal {
register: Register;
tryRecordFocus: (tryRecordFor: DraggableId) => void;
tryRestoreFocusRecorded: () => void;
tryShiftRecord: (previous: DraggableId, redirectTo: DraggableId) => void;
}