Adding in a few missing definitions for Dagre.

This commit is contained in:
David Lipowicz
2015-06-17 15:20:38 -07:00
parent faff1866df
commit f00a559ddc

14
dagre/dagre.d.ts vendored
View File

@@ -10,20 +10,24 @@ declare module Dagre{
interface Graph {
new (): Graph;
edges(): string[];
edge(id: string): any;
edges(): Edge[];
edge(id: any): any;
nodes(): string[];
node(id: string): any;
node(id: any): any;
setDefaultEdgeLabel(callback: () => void): Graph;
setEdge(sourceId: string, targetId: string): Graph;
setGraph(options: { [key: string]: any }): Graph;
setNode(id: string, node: { [key: string]: any }): Graph;
}
interface Edge {
v: string;
w: string;
}
interface GraphLib {
Graph: Graph;
}
}
declare var dagre: Dagre.DagreFactory;
declare var dagre: Dagre.DagreFactory;