mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-05-29 15:44:31 +00:00
Adding in a few missing definitions for Dagre.
This commit is contained in:
14
dagre/dagre.d.ts
vendored
14
dagre/dagre.d.ts
vendored
@@ -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;
|
||||
Reference in New Issue
Block a user