Decorators.js 989 B

12345678910111213141516171819202122232425
  1. var t = require;
  2. var e = module;
  3. var i = exports;
  4. Object.defineProperty(i, "__esModule", {value: !0}),
  5. (i.Decorators = void 0),
  6. ((i.Decorators || (i.Decorators = {})).AddGetInstance = function (t) {
  7. t.getInstance = function (...t) {
  8. var e;
  9. return (
  10. this._instance ||
  11. (0 == (e = t.length)
  12. ? (this._instance = new this())
  13. : 1 == e
  14. ? (this._instance = new this(t[0]))
  15. : 2 == e
  16. ? (this._instance = new this(t[0], t[1]))
  17. : 3 == e
  18. ? (this._instance = new this(t[0], t[1], t[2]))
  19. : 4 == e
  20. ? (this._instance = new this(t[0], t[1], t[2], t[3]))
  21. : 5 == e && (this._instance = new this(t[0], t[1], t[2], t[3], t[4]))),
  22. this._instance
  23. );
  24. };
  25. });