From 6f5e9a281407a1d261ac831c59cd92a3c2057316 Mon Sep 17 00:00:00 2001 From: David Newell Date: Mon, 24 Jul 2017 15:39:35 -0400 Subject: [PATCH] Fixing tests --- types/dagre/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/dagre/index.d.ts b/types/dagre/index.d.ts index c66709ca29..2c6c6e38ab 100644 --- a/types/dagre/index.d.ts +++ b/types/dagre/index.d.ts @@ -11,8 +11,8 @@ export namespace graphlib { edge(id: any): any; nodes(): string[]; node(id: any): any; - setDefaultEdgeLabel(callback: string|(() => string)): Graph; - setDefaultNodeLabel(callback: string|(() => string)): Graph; + setDefaultEdgeLabel(callback: string|(() => string|void)): Graph; + setDefaultNodeLabel(callback: string|(() => string|void)): Graph; setEdge(sourceId: string, targetId: string, options?: { [key: string]: any }, value?: string): Graph; setEdge(params: {v: string, w: string, name?: string}, value?: string): Graph; setGraph(label: GraphLabel): Graph; @@ -28,10 +28,10 @@ export namespace graphlib { export interface GraphLabel { width?: number; height?: number; - compound: boolean; - rankdir: string; - nodesep: number; - edgesep: number; + compound?: boolean; + rankdir?: string; + nodesep?: number; + edgesep?: number; } export function layout(graph: graphlib.Graph): void;