Skip to content

Commit

Permalink
feat(api): add Predicate2 & StatefulPredicate2 types
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jan 31, 2018
1 parent b180917 commit fbf8453
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/api/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,11 @@ export interface IObjectOf<T> {
[id: string]: T;
}

export type Predicate<T> = (x: T) => boolean;
export type Predicate<T> = (a: T) => boolean;
export type Predicate2<T> = (a: T, b: T) => boolean;

export type StatefulPredicate<T> = () => Predicate<T>;
export type StatefulPredicate2<T> = () => Predicate2<T>;

export interface IRelease {
release(opt?: any): boolean;
Expand Down

0 comments on commit fbf8453

Please sign in to comment.