fix(updateNodeInternals): update type

This commit is contained in:
moklick
2023-05-16 14:54:12 +02:00
parent 68907848cc
commit c9d079ddc3
2 changed files with 2 additions and 2 deletions
@@ -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[];