ts-json-schema-generator
Version:
Generate JSON schema from your Typescript sources
18 lines • 462 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LiteralType = void 0;
const BaseType_1 = require("./BaseType");
class LiteralType extends BaseType_1.BaseType {
constructor(value) {
super();
this.value = value;
}
getId() {
return JSON.stringify(this.value);
}
getValue() {
return this.value;
}
}
exports.LiteralType = LiteralType;
//# sourceMappingURL=LiteralType.js.map