UNPKG

tiny-types

Version:

A tiny library that brings Tiny Types to JavaScript and TypeScript

15 lines (14 loc) 419 B
import { Predicate } from './Predicate'; /** * @desc Ensures that the `value` is a {@link Function}. * * @example * import { ensure, isFunction, TinyType } from 'tiny-types'; * * function myFunction(callback: (error?: Error) => void): void { * ensure('callback', callback, isFunction()); * } * * @returns {Predicate<Function>} */ export declare function isFunction(): Predicate<(...args: any[]) => any>;