UNPKG

@jsonjoy.com/json-type

Version:

High-performance JSON Pointer implementation

22 lines 609 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AliasType = void 0; const printTree_1 = require("tree-dump/lib/printTree"); class AliasType { constructor(system, id, type) { this.system = system; this.id = id; this.type = type; } getType() { return this.type; } resolve() { return this.system.resolve(this.id); } toString(tab = '') { return this.id + (0, printTree_1.printTree)(tab, [(tab) => this.type.toString(tab)]); } } exports.AliasType = AliasType; //# sourceMappingURL=AliasType.js.map