source: trip-planner-front/node_modules/rxjs/internal/util/subscribeToPromise.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 551 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var hostReportError_1 = require("./hostReportError");
4exports.subscribeToPromise = function (promise) { return function (subscriber) {
5 promise.then(function (value) {
6 if (!subscriber.closed) {
7 subscriber.next(value);
8 subscriber.complete();
9 }
10 }, function (err) { return subscriber.error(err); })
11 .then(null, hostReportError_1.hostReportError);
12 return subscriber;
13}; };
14//# sourceMappingURL=subscribeToPromise.js.map
Note: See TracBrowser for help on using the repository browser.