TenantAtlas/apps/platform/.pnpm-store/v10/files/35/ec25eb15f5cd2b5e40999e1ad916ec142270930adfbf131763b077c0fab90d812f3a7be33e2f83c991699f24516143f8eddad3ba63ffe97c327b6f76fa7cee
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

20 lines
630 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 function (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