Stream.filter<U extends T>(fn: (value: T) => value is U): Stream<U, E>
Similar to Array.prototype.filter, but works on the stream of results. 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: (value: T) => value is U