mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
29 lines
1.3 KiB
JavaScript
29 lines
1.3 KiB
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
var scheduleObservable_1 = require("./scheduleObservable");
|
||
|
var schedulePromise_1 = require("./schedulePromise");
|
||
|
var scheduleArray_1 = require("./scheduleArray");
|
||
|
var scheduleIterable_1 = require("./scheduleIterable");
|
||
|
var isInteropObservable_1 = require("../util/isInteropObservable");
|
||
|
var isPromise_1 = require("../util/isPromise");
|
||
|
var isArrayLike_1 = require("../util/isArrayLike");
|
||
|
var isIterable_1 = require("../util/isIterable");
|
||
|
function scheduled(input, scheduler) {
|
||
|
if (input != null) {
|
||
|
if (isInteropObservable_1.isInteropObservable(input)) {
|
||
|
return scheduleObservable_1.scheduleObservable(input, scheduler);
|
||
|
}
|
||
|
else if (isPromise_1.isPromise(input)) {
|
||
|
return schedulePromise_1.schedulePromise(input, scheduler);
|
||
|
}
|
||
|
else if (isArrayLike_1.isArrayLike(input)) {
|
||
|
return scheduleArray_1.scheduleArray(input, scheduler);
|
||
|
}
|
||
|
else if (isIterable_1.isIterable(input) || typeof input === 'string') {
|
||
|
return scheduleIterable_1.scheduleIterable(input, scheduler);
|
||
|
}
|
||
|
}
|
||
|
throw new TypeError((input !== null && typeof input || input) + ' is not observable');
|
||
|
}
|
||
|
exports.scheduled = scheduled;
|
||
|
//# sourceMappingURL=scheduled.js.map
|