Front end of the Slack clone application.

OuterSubscriber.js 1.1KB

1234567891011121314151617181920212223242526272829303132
  1. /** PURE_IMPORTS_START ._Subscriber PURE_IMPORTS_END */
  2. var __extends = (this && this.__extends) || function (d, b) {
  3. for (var p in b)
  4. if (b.hasOwnProperty(p))
  5. d[p] = b[p];
  6. function __() { this.constructor = d; }
  7. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  8. };
  9. import { Subscriber } from './Subscriber';
  10. /**
  11. * We need this JSDoc comment for affecting ESDoc.
  12. * @ignore
  13. * @extends {Ignored}
  14. */
  15. export var OuterSubscriber = /*@__PURE__*/ (/*@__PURE__*/ function (_super) {
  16. __extends(OuterSubscriber, _super);
  17. function OuterSubscriber() {
  18. _super.apply(this, arguments);
  19. }
  20. OuterSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  21. this.destination.next(innerValue);
  22. };
  23. OuterSubscriber.prototype.notifyError = function (error, innerSub) {
  24. this.destination.error(error);
  25. };
  26. OuterSubscriber.prototype.notifyComplete = function (innerSub) {
  27. this.destination.complete();
  28. };
  29. return OuterSubscriber;
  30. }(Subscriber));
  31. //# sourceMappingURL=OuterSubscriber.js.map