Skip to content

Commit

Permalink
feat(core): support refinements in filter operator (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
raveclassic authored and briancavalier committed Jun 25, 2019
1 parent 2ea4a39 commit 7b47c02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/type-definitions/combinator/filter.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Stream } from '@most/types';

export function filter<A, B extends A>(p: (a: A) => a is B, s: Stream<A>): Stream<B>;
export function filter<A>(p: (a: A) => boolean, s: Stream<A>): Stream<A>;
export function filter<A, B extends A>(p: (a: A) => a is B): (s: Stream<A>) => Stream<B>;
export function filter<A>(p: (a: A) => boolean): (s: Stream<A>) => Stream<A>;

export function skipRepeats<A>(s: Stream<A>): Stream<A>;
Expand Down

0 comments on commit 7b47c02

Please sign in to comment.