1 | import type { Fn, Fn0, Fn2 } from "./fn.js";
|
2 | /**
|
3 | * Predicate function mapping given value to true/false.
|
4 | */
|
5 | export type Predicate<T> = Fn<T, boolean>;
|
6 | /**
|
7 | * Predicate function mapping given args to true/false.
|
8 | */
|
9 | export type Predicate2<T> = Fn2<T, T, boolean>;
|
10 | /**
|
11 | * Higher order {@link Predicate} builder. Possibly stateful.
|
12 | */
|
13 | export type StatefulPredicate<T> = Fn0<Predicate<T>>;
|
14 | /**
|
15 | * Higher order {@link Predicate2} builder. Possibly stateful.
|
16 | */
|
17 | export type StatefulPredicate2<T> = Fn0<Predicate2<T>>;
|
18 | //# sourceMappingURL=predicate.d.ts.map |
\ | No newline at end of file |