Skip to content
Snippets Groups Projects
Commit ce8279a9 authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Improved typing

parent 0ca9dd7d
No related branches found
No related tags found
No related merge requests found
...@@ -183,7 +183,7 @@ export class Graph ...@@ -183,7 +183,7 @@ export class Graph
this.idToNode.set(node.id, node); this.idToNode.set(node.id, node);
} }
public createNode(data?: NodeData): Node { public createNode(data?: NodeData | SimNodeData): Node {
const node = new Node(this); const node = new Node(this);
node.fromSerializedObject(data); node.fromSerializedObject(data);
node.type = this.nameToObjectGroup.get(data.type); node.type = this.nameToObjectGroup.get(data.type);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment