Fix compilation

This commit is contained in:
Paulo Gustavo Veiga 2022-01-24 11:51:20 -08:00
parent 4cdddcf05c
commit 560aa567c5
2 changed files with 1 additions and 9 deletions

View File

@ -19,7 +19,6 @@
*/
import { $assert } from '@wisemapping/core-js';
import INodeModel, { NodeModelType as NodeType } from './INodeModel';
import NodeModel from './NodeModel';
import RelationshipModel from './RelationshipModel';
abstract class IMindmap {
@ -76,7 +75,7 @@ abstract class IMindmap {
abstract createNode(type: NodeType, id: number): INodeModel
abstract createRelationship(fromNode: NodeModel, toNode: NodeModel): void;
abstract createRelationship(fromNodeId: number, toNodeId: number): void;
abstract addRelationship(rel: RelationshipModel): void;

View File

@ -126,13 +126,6 @@ class Mindmap extends IMindmap {
return new NodeModel(type, this, id);
}
/**
* @param sourceNodeId
* @param targetNodeId
* @throws will throw an error if source node is null or undefined
* @throws will throw an error if target node is null or undefined
* @return the relationship model created
*/
createRelationship(sourceNodeId: number, targetNodeId: number):RelationshipModel {
$assert($defined(sourceNodeId), 'from node cannot be null');
$assert($defined(targetNodeId), 'to node cannot be null');