source: trip-planner-front/node_modules/rxjs/internal/observable/fromPromise.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: 575 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var Observable_1 = require("../Observable");
4var subscribeToPromise_1 = require("../util/subscribeToPromise");
5var schedulePromise_1 = require("../scheduled/schedulePromise");
6function fromPromise(input, scheduler) {
7 if (!scheduler) {
8 return new Observable_1.Observable(subscribeToPromise_1.subscribeToPromise(input));
9 }
10 else {
11 return schedulePromise_1.schedulePromise(input, scheduler);
12 }
13}
14exports.fromPromise = fromPromise;
15//# sourceMappingURL=fromPromise.js.map
Note: See TracBrowser for help on using the repository browser.