summaryrefslogtreecommitdiff
path: root/u/types/fn/callable.ts
diff options
context:
space:
mode:
Diffstat (limited to 'u/types/fn/callable.ts')
-rw-r--r--u/types/fn/callable.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/u/types/fn/callable.ts b/u/types/fn/callable.ts
index 51756d7..60d747b 100644
--- a/u/types/fn/callable.ts
+++ b/u/types/fn/callable.ts
@@ -10,6 +10,8 @@ export interface Mapper<T, U> extends Callable<U, T> {
(t: T): U;
}
+export interface Predicate<T> extends Mapper<T, boolean> {}
+
export interface BiMapper<T, U, R> extends Callable {
(t: T, u: U): R;
}