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

27 lines 853 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ObjectEx = void 0; var utils_1 = require("./utils"); var UNIQUE_IDX = 0; var ObjectEx = /** @class */ (function () { function ObjectEx() { this[utils_1.privateSymbol] = {}; this.setPrivate('uniqueID', "id_" + UNIQUE_IDX++); } ObjectEx.prototype.init = function () { }; ObjectEx.prototype.getUniqueId = function () { return this.getPrivate('uniqueID'); }; // TODO fix typing ObjectEx.prototype.getPrivate = function (name) { return this[utils_1.privateSymbol][name]; }; // TODO fix typing ObjectEx.prototype.setPrivate = function (name, val) { this[utils_1.privateSymbol][name] = val; }; return ObjectEx; }()); exports.ObjectEx = ObjectEx; //# sourceMappingURL=object-ex.js.map