@valuer/fn
Version:
Collection of function utils for Valuer
23 lines (22 loc) • 1.05 kB
TypeScript
export declare namespace fn {
/**
* Get negated thunk
* @param thunk Thunk to negate
*/
const not: <Value>(thunk: import("@valuer/types").Factory<Value, boolean>) => import("@valuer/types").Factory<Value, boolean>;
/**
* Whether any of the thunks over the input returns `true`
* @param thunks Thunks to pipe together
*/
const any: <Value>(...thunks: import("@valuer/types").Factory<Value, boolean>[]) => import("@valuer/types").Factory<Value, boolean>;
/**
* Whether exactly one of the thunks over the input returns `true`
* @param thunks Thunks to pipe together
*/
const one: <Value>(...thunks: import("@valuer/types").Factory<Value, boolean>[]) => import("@valuer/types").Factory<Value, boolean>;
/**
* Whether all of the thunks over the input return `true`
* @param thunks Thunks to pipe together
*/
const all: <Value>(...thunks: import("@valuer/types").Factory<Value, boolean>[]) => import("@valuer/types").Factory<Value, boolean>;
}