rambda
Version:
Lightweight faster alternative to Ramda
18 lines (16 loc) • 463 B
text/typescript
import {_Function} from './_Internal'
import {Tuple} from '../Tuple/Tuple'
/** Alias to create a **`Function`**
* @param P parameters
* @param R return type
* @returns **`Function`**
* @example
* ```ts
* import {F} from 'ts-toolbelt'
*
* type test0 = F.Function<[string, number], boolean>
* /// (args_0: string, args_1: number) => boolean
* ```
*/
export type Function<P extends Tuple = any, R extends any = any> =
((...args: P) => R) & _Function