UNPKG

ts-json-schema-generator

Version:

Generate JSON schema from your Typescript sources

18 lines 521 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.IntersectionType = void 0; const BaseType_1 = require("./BaseType"); class IntersectionType extends BaseType_1.BaseType { constructor(types) { super(); this.types = types; } getId() { return "(" + this.types.map((type) => type.getId()).join("&") + ")"; } getTypes() { return this.types; } } exports.IntersectionType = IntersectionType; //# sourceMappingURL=IntersectionType.js.map