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