UNPKG

@zero-scripts/core

Version:

Framework for creating presets, configurations and extensions

22 lines 580 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DependencyNode = void 0; class DependencyNode { constructor(id) { this.id = id; this.edges = []; } addOrGetEdge(id) { let node = this.edges.find(node => node.id === id); if (!node) { node = new DependencyNode(id); this.edges.push(node); } return node; } toString() { return this.id; } } exports.DependencyNode = DependencyNode; //# sourceMappingURL=DependencyNode.js.map