Merge pull request #3059 from wbkd/fix/use-update-internals-type

Fix/use update internals type
This commit is contained in:
Moritz Klack
2023-05-16 16:38:05 +02:00
committed by GitHub
3 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@reactflow/core': patch
---
fix useUpdateNodeInternals type
@@ -1,4 +1,4 @@
import React, { useState, memo, FC, useMemo, CSSProperties } from 'react';
import { useState, memo, FC, useMemo, CSSProperties } from 'react';
import { Handle, Position, NodeProps, useUpdateNodeInternals } from 'reactflow';
const nodeStyles: CSSProperties = { padding: 10, border: '1px solid #ddd' };
+1 -1
View File
@@ -257,7 +257,7 @@ export type ReactFlowActions = {
export type ReactFlowState = ReactFlowStore & ReactFlowActions;
export type UpdateNodeInternals = (nodeId: string) => void;
export type UpdateNodeInternals = (nodeId: string | string[]) => void;
export type OnSelectionChangeParams = {
nodes: Node[];