@quenk/preconditions
Version:
Make data satisfy constraints before using.
11 lines (10 loc) • 362 B
TypeScript
import { Type } from '@quenk/noni/lib/data/type';
import { Precondition } from './';
/**
* range tests whether a number falls within a specified range.
*/
export declare const range: (min: number, max: number) => Precondition<number, number>;
/**
* isFunction tests if a value is a function.
*/
export declare const isFunction: Precondition<Type, Function>;