/** * Maps the error value of this cause to the specified constant value. * * @tsplus static effect/core/io/Cause.Aspects as * @tsplus pipeable effect/core/io/Cause as */ export function as(error: E1) { return (self: Cause): Cause => self.map(() => error) }