Package: effect
Module: Stream
Keeps some of the errors, and terminates the fiber with the rest, using the
specified function to convert the E into a defect.
Signature
declare const refineOrDieWith: { <E, E2>(pf: (error: E) => Option.Option<E2>, f: (error: E) => unknown): <A, R>(self: Stream<A, E, R>) => Stream<A, E2, R>; <A, E, R, E2>(self: Stream<A, E, R>, pf: (error: E) => Option.Option<E2>, f: (error: E) => unknown): Stream<A, E2, R>; }
Since v2.0.0