/** * Recovers from all errors. * * @tsplus static effect/core/io/Effect.Aspects catchAll * @tsplus pipeable effect/core/io/Effect catchAll */ export function catchAll(f: (e: E) => Effect) { return (self: Effect): Effect => self.foldEffect(f, Effect.succeed) }