UNPKG

@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

19 lines (18 loc) 503 B
type Callback = () => void; type Scheduler = { /** * Queues the provided function to be called asynchronously. */ schedule(callback: Callback): void; /** * Calls the queue of functions synchronously, and cancels the pending timeouts. */ flush(): void; }; /** * Used to schedule callbacks inside of a `setTimeout(fn, 0)`. * * This is used to match the behavior and timings of `react-beautiful-dnd`. */ export declare function useScheduler(): Scheduler; export {};