/** * Returns a new effect where the error channel has been merged into the * success channel to their common combined type. * * @tsplus getter effect/core/stm/STM merge */ export function merge(self: STM): STM { return self.foldSTM((e) => STM.succeed(e), STM.succeed) }