From 89691438b48dd31c9bf7cccc50779bfdacb70d29 Mon Sep 17 00:00:00 2001 From: Dom Parfitt Date: Fri, 12 Oct 2018 15:57:25 +0100 Subject: [PATCH] Added module declaration --- types/d3-graphviz/index.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index cfcde911be..f4904a8829 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -4,10 +4,12 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 +declare module 'd3-graphviz' { + import { ZoomBehavior } from 'd3-zoom' import { Selection } from 'd3-selection' -declare module 'd3-selection' { +module 'd3-selection' { interface Selection { graphviz(options?: IGraphvizOptions | boolean): IGraphviz; selectWithoutDataPropagation(): Selection; @@ -100,4 +102,5 @@ export interface IGraphviz { inserDrawnNode(nodeId: string): IGraphviz; removeDrawnNode(): IGraphviz; drawnNodeSelection(): Selection; -} \ No newline at end of file +} +}