/** * Keeps some of the errors, and terminates the fiber with the rest * * @tsplus static effect/core/stm/STM.Aspects refineOrDie * @tsplus pipeable effect/core/stm/STM refineOrDie */ export function refineOrDie(pf: (e: E) => Maybe) { return (self: STM): STM => self.refineOrDieWith(pf, identity) }