Stream.filterErr<F extends E>(fn: (error: E) => error is F): Stream<T, F>
Similar to Array.prototype.filter, but works on the stream of errors. If the provided function throws an error or returns a rejected promise, the error will be collected and emitted as an error result in the stream.
fn: (error: E) => error is F