publishLast.js 537 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.publishLast = void 0;
  4. var AsyncSubject_1 = require("../AsyncSubject");
  5. var ConnectableObservable_1 = require("../observable/ConnectableObservable");
  6. function publishLast() {
  7. return function (source) {
  8. var subject = new AsyncSubject_1.AsyncSubject();
  9. return new ConnectableObservable_1.ConnectableObservable(source, function () { return subject; });
  10. };
  11. }
  12. exports.publishLast = publishLast;
  13. //# sourceMappingURL=publishLast.js.map