From 92d8276f1bcb5eff128075f9a33b634d6a08ab1f Mon Sep 17 00:00:00 2001 From: Nate Amack Date: Tue, 4 Aug 2020 13:38:36 -0600 Subject: [PATCH] fix(type): add type definition for onPaneClick --- src/container/ReactFlow/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/container/ReactFlow/index.tsx b/src/container/ReactFlow/index.tsx index 92231b86..8618c5b4 100644 --- a/src/container/ReactFlow/index.tsx +++ b/src/container/ReactFlow/index.tsx @@ -50,7 +50,7 @@ export interface ReactFlowProps extends Omit, 'on onMoveStart?: (flowTransform?: FlowTransform) => void; onMoveEnd?: (flowTransform?: FlowTransform) => void; onSelectionChange?: (elements: Elements | null) => void; - onPaneClick?: () => void; + onPaneClick?: (evt: MouseEvent) => void; nodeTypes: NodeTypesType; edgeTypes: EdgeTypesType; connectionLineType: ConnectionLineType;