UNPKG

swagger-typescript-generator

Version:

Generate typescript code from swagger.json. Before start this project I try use [swagger-typescript-codegen](https://github.com/mtennoe/swagger-typescript-codegen) based on [mustache templates](https://github.com/mtennoe/swagger-js-codegen/tree/master/lib

69 lines 2.29 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SwaggerBase = void 0; var object_ex_1 = require("./object-ex"); var SwaggerBase = /** @class */ (function (_super) { __extends(SwaggerBase, _super); function SwaggerBase() { return _super !== null && _super.apply(this, arguments) || this; } SwaggerBase.prototype.init = function () { }; Object.defineProperty(SwaggerBase.prototype, "utils", { get: function () { return this.doc.utils; }, enumerable: false, configurable: true }); Object.defineProperty(SwaggerBase.prototype, "doc", { get: function () { return this.parent.doc; }, enumerable: false, configurable: true }); Object.defineProperty(SwaggerBase.prototype, "config", { get: function () { return this.doc.config; }, enumerable: false, configurable: true }); Object.defineProperty(SwaggerBase.prototype, "source", { get: function () { return this.getPrivate('_source'); }, set: function (val) { this.setPrivate("_source", val); }, enumerable: false, configurable: true }); Object.defineProperty(SwaggerBase.prototype, "parent", { get: function () { return this.getPrivate('_parent'); }, set: function (val) { this.setPrivate("_parent", val); }, enumerable: false, configurable: true }); return SwaggerBase; }(object_ex_1.ObjectEx)); exports.SwaggerBase = SwaggerBase; //# sourceMappingURL=swagger-base.js.map