···11+---
22+'wonka': patch
33+---
44+55+Add missing overload definition for `filter`, which allows types to be narrowed, e.g. by specifying a type predicate return type.
+4-2
src/__tests__/operators.test.ts
···231231 passesAsyncSequence(noop);
232232233233 it('prevents emissions for which a predicate fails', () => {
234234- const { source, next } = sources.makeSubject();
234234+ const { source, next } = sources.makeSubject<boolean>();
235235 const fn = vi.fn();
236236237237- sinks.forEach(fn)(operators.filter(x => !!x)(source));
237237+ sinks.forEach((x: true) => {
238238+ fn(x);
239239+ })(operators.filter((x): x is true => !!x)(source));
238240239241 next(false);
240242 expect(fn).not.toHaveBeenCalled();