mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Added types to global tests
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { Graph } from "graphlib";
|
||||
|
||||
// Global tests
|
||||
const graph = graphlibDot.read('digraph {node 1}');
|
||||
const graph: Graph = graphlibDot.read('digraph {node 1}');
|
||||
|
||||
const graphs = graphlibDot.readMany('digraph { node1 }');
|
||||
const graphs: Graph[] = graphlibDot.readMany('digraph { node1 }');
|
||||
|
||||
const dotStr = graphlibDot.write(graph);
|
||||
const dotStr: string = graphlibDot.write(graph);
|
||||
|
||||
Reference in New Issue
Block a user