UNPKG

@quenk/preconditions

Version:
11 lines (10 loc) 362 B
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>;