Skip to content

Commit fff4e53

Browse files
authored
Merge pull request #502 from dagrejs/sug
Using the suggested graphlib export
2 parents 7b05105 + 43e6ef9 commit fff4e53

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

dist/dagre.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Graph as ImportedGraph, Node as GraphNode, Edge as GraphEdge } from '@d
33
// --- Graphlib Exports (Public API of dagre.graphlib) ---
44

55
export namespace graphlib {
6-
export import Graph = ImportedGraph;
6+
export { ImportedGraph as Graph };
77

88
export namespace json {
99
function read(graph: any): Graph;
@@ -101,4 +101,4 @@ export type Node<T = {}> = T & {
101101
rx?: number | undefined;
102102
ry?: number | undefined;
103103
shape?: string | undefined;
104-
};
104+
};

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Graph as ImportedGraph, Node as GraphNode, Edge as GraphEdge } from '@d
33
// --- Graphlib Exports (Public API of dagre.graphlib) ---
44

55
export namespace graphlib {
6-
export import Graph = ImportedGraph;
6+
export { ImportedGraph as Graph };
77

88
export namespace json {
99
function read(graph: any): Graph;
@@ -101,4 +101,4 @@ export type Node<T = {}> = T & {
101101
rx?: number | undefined;
102102
ry?: number | undefined;
103103
shape?: string | undefined;
104-
};
104+
};

0 commit comments

Comments
 (0)