curry module

Type aliases

Functions

Type aliases

Args

Ƭ Args: T extends function ? TArgs : never

Defined in index.ts:11


Curried

Ƭ Curried: function

Defined in index.ts:19

Type declaration:

▸ ‹TArgs, TRest›(...args: TArgs): TRest extends [] ? TReturn : Curried‹function›

Type parameters:

TArgs: PartialArgs‹T›

TRest: TailArrayArgs‹T›, TArgs["length"]›

Parameters:

Name Type
...args TArgs

Curry

Ƭ Curry: function

Defined in index.ts:28

Type declaration:

▸ ‹TFunc›(fn: TFunc, arity?: number): Curried‹TFunc›

Type parameters:

TFunc: function

Parameters:

Name Type
fn TFunc
arity? number

PartialArgs

Ƭ PartialArgs: T extends function ? Partial‹TArgs› : never

Defined in index.ts:15


Tail

Ƭ Tail:

Defined in index.ts:1


TailArray

Ƭ TailArray: Tail‹function, S›

Defined in index.ts:8

Functions

Const curry

curry(fn: TFunc, arity: number): (Anonymous function)

Defined in index.ts:30

Parameters:

Name Type Default
fn TFunc -
arity number fn.length

Returns: (Anonymous function)

results matching ""

    No results matching ""