Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / _esm5 / internal / operators / mapTo.js
1 /** PURE_IMPORTS_START tslib,_Subscriber PURE_IMPORTS_END */
2 import * as tslib_1 from "tslib";
3 import { Subscriber } from '../Subscriber';
4 export function mapTo(value) {
5     return function (source) { return source.lift(new MapToOperator(value)); };
6 }
7 var MapToOperator = /*@__PURE__*/ (function () {
8     function MapToOperator(value) {
9         this.value = value;
10     }
11     MapToOperator.prototype.call = function (subscriber, source) {
12         return source.subscribe(new MapToSubscriber(subscriber, this.value));
13     };
14     return MapToOperator;
15 }());
16 var MapToSubscriber = /*@__PURE__*/ (function (_super) {
17     tslib_1.__extends(MapToSubscriber, _super);
18     function MapToSubscriber(destination, value) {
19         var _this = _super.call(this, destination) || this;
20         _this.value = value;
21         return _this;
22     }
23     MapToSubscriber.prototype._next = function (x) {
24         this.destination.next(this.value);
25     };
26     return MapToSubscriber;
27 }(Subscriber));
28 //# sourceMappingURL=mapTo.js.map