UNPKG

619 BTypeScriptView Raw
1import { Mapper } from "../Mapping";
2import { PredicateMapping } from "../PredicateMapping";
3/**
4 * Predicate that can be used in predicate DSL.
5 * Can be a PredicateMapping, a function or computed boolean
6 */
7export declare type PredicateMappingTerm<F> = PredicateMapping<F> | Mapper<F, boolean> | (() => (boolean | Promise<boolean>));
8/**
9 * Convert a PredicateMapping term to a PredicateMapping
10 * @param {PredicateMappingTerm<F>} p
11 * @return {PredicateMapping<F>}
12 */
13export declare function toPredicateMapping<F>(p: PredicateMappingTerm<F>): PredicateMapping<F>;
14//# sourceMappingURL=PredicateMappingTerm.d.ts.map
\No newline at end of file