@xyflow/react
Version:
React Flow - A highly customizable React library for building node-based editors and interactive flow charts.
10 lines • 492 B
TypeScript
import type { NodeChange } from '@xyflow/system';
import type { Node } from '../types';
/**
* Registers a middleware function to transform node changes.
*
* @public
* @param fn - Middleware function. Should be memoized with useCallback to avoid re-registration.
*/
export declare function experimental_useOnNodesChangeMiddleware<NodeType extends Node = Node>(fn: (changes: NodeChange<NodeType>[]) => NodeChange<NodeType>[]): void;
//# sourceMappingURL=useOnNodesChangeMiddleware.d.ts.map