/** * Squashes a `Cause` down to a single `Error`, chosen to be the "most * important" `Error`. * * @tsplus getter effect/core/io/Cause squash */ export function squash(self: Cause): Error { return self.squashWith((e) => e instanceof Error) as Error }