frontend/.pnpm-store/v3/files/32/db45f158814ee41096a41c94ce19e25aeffefc519551734bf8d1737a1ebb7c2ded07f363ce751d8e2ec17df66df2e0d2e6cc9cdb9d98ee48f863bf88c043ab

20 lines
624 B
Plaintext

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