rambdax
Version:
Extended version of Rambda - a lightweight, faster alternative to Ramda
19 lines (16 loc) • 378 B
text/typescript
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 interface Function<P extends List = any, R extends any = any> {
(...args: P): R
}