source: trip-planner-front/node_modules/rxjs/internal/scheduled/scheduled.js@ ceaed42

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

initial commit

  • Property mode set to 100644
File size: 1.3 KB
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var scheduleObservable_1 = require("./scheduleObservable");
4var schedulePromise_1 = require("./schedulePromise");
5var scheduleArray_1 = require("./scheduleArray");
6var scheduleIterable_1 = require("./scheduleIterable");
7var isInteropObservable_1 = require("../util/isInteropObservable");
8var isPromise_1 = require("../util/isPromise");
9var isArrayLike_1 = require("../util/isArrayLike");
10var isIterable_1 = require("../util/isIterable");
11function scheduled(input, scheduler) {
12 if (input != null) {
13 if (isInteropObservable_1.isInteropObservable(input)) {
14 return scheduleObservable_1.scheduleObservable(input, scheduler);
15 }
16 else if (isPromise_1.isPromise(input)) {
17 return schedulePromise_1.schedulePromise(input, scheduler);
18 }
19 else if (isArrayLike_1.isArrayLike(input)) {
20 return scheduleArray_1.scheduleArray(input, scheduler);
21 }
22 else if (isIterable_1.isIterable(input) || typeof input === 'string') {
23 return scheduleIterable_1.scheduleIterable(input, scheduler);
24 }
25 }
26 throw new TypeError((input !== null && typeof input || input) + ' is not observable');
27}
28exports.scheduled = scheduled;
29//# sourceMappingURL=scheduled.js.map
Note: See TracBrowser for help on using the repository browser.