UNPKG

ts-toolbelt

Version:

TypeScript's largest utility library

16 lines (15 loc) 413 B
import { List } from '../List/List'; /** * 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 declare type Function<P extends List = any, R extends any = any> = (...args: P) => R;