UNPKG

reactflow-velocity

Version:

React Flow - A highly customizable React library for building node-based editors and interactive flow charts.

13 lines 694 B
import type { Node } from '../types'; /** * Hook for receiving data of one or multiple nodes * * @public * @param nodeId - The id (or ids) of the node to get the data from * @param guard - Optional guard function to narrow down the node type * @returns An array od data objects */ export declare function useNodesData<NodeType extends Node = Node>(nodeId: string): NodeType['data'] | null; export declare function useNodesData<NodeType extends Node = Node>(nodeIds: string[]): NodeType['data'][]; export declare function useNodesData<NodeType extends Node = Node>(nodeIds: string[], guard: (node: Node) => node is NodeType): NodeType['data'][]; //# sourceMappingURL=useNodesData.d.ts.map