diff --git a/types/react-d3-graph/index.d.ts b/types/react-d3-graph/index.d.ts index d0666ecbad..9f88a48feb 100644 --- a/types/react-d3-graph/index.d.ts +++ b/types/react-d3-graph/index.d.ts @@ -114,6 +114,7 @@ export interface GraphData { } export interface GraphEventCallbacks { + onClickGraph: (event: MouseEvent) => void; onClickNode: (nodeId: string) => void; onDoubleClickNode: (nodeId: string) => void; onRightClickNode: (event: MouseEvent, nodeId: string) => void; diff --git a/types/react-d3-graph/react-d3-graph-tests.tsx b/types/react-d3-graph/react-d3-graph-tests.tsx index 5d44855bbe..d276c8bc82 100644 --- a/types/react-d3-graph/react-d3-graph-tests.tsx +++ b/types/react-d3-graph/react-d3-graph-tests.tsx @@ -6,6 +6,7 @@ export class Example extends React.Component { return (
{}} id="test" data={{ nodes: [