UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

22 lines 571 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DefinitionType = void 0; const BaseType_1 = require("./BaseType"); class DefinitionType extends BaseType_1.BaseType { constructor(name, type) { super(); this.name = name; this.type = type; } getId() { return "def-" + this.type.getId(); } getName() { return this.name || super.getName(); } getType() { return this.type; } } exports.DefinitionType = DefinitionType; //# sourceMappingURL=DefinitionType.js.map