feat(ui): add type filter toggles
This commit is contained in:
21
node_modules/@xyflow/react/dist/esm/hooks/useEdges.d.ts
generated
vendored
Normal file
21
node_modules/@xyflow/react/dist/esm/hooks/useEdges.d.ts
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import type { Edge } from '../types';
|
||||
/**
|
||||
* This hook returns an array of the current edges. Components that use this hook
|
||||
* will re-render **whenever any edge changes**.
|
||||
*
|
||||
* @public
|
||||
* @returns An array of all edges currently in the flow.
|
||||
*
|
||||
* @example
|
||||
* ```tsx
|
||||
*import { useEdges } from '@xyflow/react';
|
||||
*
|
||||
*export default function () {
|
||||
* const edges = useEdges();
|
||||
*
|
||||
* return <div>There are currently {edges.length} edges!</div>;
|
||||
*}
|
||||
*```
|
||||
*/
|
||||
export declare function useEdges<EdgeType extends Edge = Edge>(): EdgeType[];
|
||||
//# sourceMappingURL=useEdges.d.ts.map
|
||||
Reference in New Issue
Block a user