refactor(util-functions): cleanup types so that node/edge types get infered

This commit is contained in:
moklick
2024-01-15 17:32:30 +01:00
parent 4d8fc79d21
commit 1bc1ae855d
9 changed files with 30 additions and 127 deletions
+6 -1
View File
@@ -29,7 +29,7 @@ export { useConnection } from './hooks/useConnection';
export { useNodeId } from './contexts/NodeIdContext';
export { applyNodeChanges, applyEdgeChanges, handleParentExpand } from './utils/changes';
export { isNode, isEdge, getIncomers, getOutgoers, addEdge, updateEdge, getConnectedEdges } from './utils/general';
export { isNode, isEdge } from './utils/general';
export * from './additional-components';
@@ -102,5 +102,10 @@ export {
getStraightPath,
getViewportForBounds,
getNodesBounds,
getIncomers,
getOutgoers,
addEdge,
updateEdge,
getConnectedEdges,
internalsSymbol,
} from '@xyflow/system';