UNPKG

@matthewgapp/solidjs-flow

Version:

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

17 lines 579 B
import { Queue } from './types'; import type { Edge, Node } from '../../types'; import { JSX } from 'solid-js'; /** * This is a context provider that holds and processes the node and edge update queues * that are needed to handle setNodes, addNodes, setEdges and addEdges. * * @internal */ export declare function BatchProvider<NodeType extends Node = Node, EdgeType extends Edge = Edge>(p: { children: JSX.Element; }): JSX.Element; export declare function useBatchContext(): { nodeQueue: Queue<any>; edgeQueue: Queue<any>; }; //# sourceMappingURL=index.d.ts.map