UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

24 lines 582 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RestType = void 0; const BaseType_js_1 = require("./BaseType.js"); class RestType extends BaseType_js_1.BaseType { item; title; constructor(item, title = null) { super(); this.item = item; this.title = title; } getId() { return `...${this.item.getId()}${this.title || ""}`; } getTitle() { return this.title; } getType() { return this.item; } } exports.RestType = RestType; //# sourceMappingURL=RestType.js.map