publish.js 491 B

1234567891011
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.publish = void 0;
  4. var Subject_1 = require("../Subject");
  5. var multicast_1 = require("./multicast");
  6. var connect_1 = require("./connect");
  7. function publish(selector) {
  8. return selector ? function (source) { return connect_1.connect(selector)(source); } : function (source) { return multicast_1.multicast(new Subject_1.Subject())(source); };
  9. }
  10. exports.publish = publish;
  11. //# sourceMappingURL=publish.js.map