RangeObservable.js 1.1 KB

12345678910111213141516171819202122232425262728
  1. var __extends = (this && this.__extends) || (function () {
  2. var extendStatics = function (d, b) {
  3. extendStatics = Object.setPrototypeOf ||
  4. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  5. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  6. return extendStatics(d, b);
  7. }
  8. return function (d, b) {
  9. extendStatics(d, b);
  10. function __() { this.constructor = d; }
  11. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  12. };
  13. })();
  14. import { Observable, range } from 'rxjs';
  15. var RangeObservable = (function (_super) {
  16. __extends(RangeObservable, _super);
  17. function RangeObservable() {
  18. return _super !== null && _super.apply(this, arguments) || this;
  19. }
  20. RangeObservable.create = function (start, count, scheduler) {
  21. if (start === void 0) { start = 0; }
  22. if (count === void 0) { count = 0; }
  23. return range(start, count, scheduler);
  24. };
  25. return RangeObservable;
  26. }(Observable));
  27. export { RangeObservable };
  28. //# sourceMappingURL=RangeObservable.js.map