import { Fail } from "@effect/core/io/Cause/definition" /** * Transforms the error type of this cause with the specified function. * * @tsplus static effect/core/io/Cause.Aspects map * @tsplus pipeable effect/core/io/Cause map */ export function map(f: (e: E) => E1) { return (self: Cause): Cause => self.flatMap((e) => new Fail(f(e))) }