You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RELOG/node_modules/@xyflow/react/dist/esm/components/BatchProvider/useQueue.d.ts

11 lines
365 B

import { Queue, QueueItem } from './types';
/**
* This hook returns a queue that can be used to batch updates.
*
* @param runQueue - a function that gets called when the queue is flushed
* @internal
*
* @returns a Queue object
*/
export declare function useQueue<T>(runQueue: (items: QueueItem<T>[]) => void): Queue<T>;
//# sourceMappingURL=useQueue.d.ts.map