tslib-lite.js 537 B

123456789101112131415161718
  1. /*
  2. derived from:
  3. https://github.com/Microsoft/tslib/blob/v1.6.0/tslib.js
  4. only include the helpers we need, to keep down filesize
  5. */
  6. var extendStatics =
  7. Object.setPrototypeOf ||
  8. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  9. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  10. exports.__extends = function (d, b) {
  11. extendStatics(d, b);
  12. function __() { this.constructor = d; }
  13. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  14. };