import * as tsplus_module_1 from "@tsplus/stdlib/data/Either/definition";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/fold";
/**
 * Converts the failure channel into an `Either`.
 *
 * @tsplus getter ets/STM either
 */

export function either(self) {
  return tsplus_module_2.fold_(self, tsplus_module_1.left, tsplus_module_1.right);
}
//# sourceMappingURL=either.mjs.map