Add web front-end and fix API issues
This commit is contained in:
1 parent
45ca4de0ad
commit
a7524412f0
2571 files changed
+86998
-5
No files matched your search
+20
@@ -0,0 +1,20 @@
|
||||
import { isFunction } from './isFunction';
|
||||
export function hasLift(source) {
|
||||
return isFunction(source === null || source === void 0 ? void 0 : source.lift);
|
||||
}
|
||||
export function operate(init) {
|
||||
return (source) => {
|
||||
if (hasLift(source)) {
|
||||
return source.lift(function (liftedSource) {
|
||||
try {
|
||||
return init(liftedSource, this);
|
||||
}
|
||||
catch (err) {
|
||||
this.error(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
throw new TypeError('Unable to lift unknown Observable type');
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=lift.js.map
|
||||
Reference in new issue
Block a user