UNPKG

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