diff --git a/types/d3-graphviz/index.d.ts b/types/d3-graphviz/index.d.ts index 9429cc7ae9..52547bb101 100644 --- a/types/d3-graphviz/index.d.ts +++ b/types/d3-graphviz/index.d.ts @@ -7,13 +7,12 @@ import { ZoomBehavior } from 'd3-zoom' import { Selection } from 'd3-selection' - /** * * @param selector * @param options */ -export function graphviz(selector: string, options: IGraphvizOptions | boolean): IGraphviz; +export function graphviz(selector: string, options?: IGraphvizOptions | boolean): IGraphviz; export interface IGraphvizOptions { useWorker?: boolean, @@ -74,7 +73,7 @@ export interface IGraphviz { render(callback: Function): IGraphviz; dot(src: any, callback: () => void): any; data(): any; - renderDot(src: string, callback: any): IGraphviz; + renderDot(src: string, callback?: any): IGraphviz; transition: any; active(name: any): any; options(options: IGraphvizOptions | undefined): IGraphviz;