UNPKG

413 BTypeScriptView Raw
1import { List } from '../List/List';
2/**
3 * Alias to create a [[Function]]
4 * @param P parameters
5 * @param R return type
6 * @returns [[Function]]
7 * @example
8 * ```ts
9 * import {F} from 'ts-toolbelt'
10 *
11 * type test0 = F.Function<[string, number], boolean>
12 * /// (args_0: string, args_1: number) => boolean
13 * ```
14 */
15export declare type Function<P extends List = any, R extends any = any> = (...args: P) => R;