Add Predicate type
This commit is contained in:
parent
78ec06bda3
commit
8025b121af
2 changed files with 6 additions and 3 deletions
|
|
@ -1,3 +1,5 @@
|
|||
export type Predicate<T> = (x: T) => boolean;
|
||||
|
||||
export type Relation<T, U> = (x: T, y: U) => boolean;
|
||||
|
||||
export type EndoRelation<T> = Relation<T, T>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue