Skip to content

Commit 4db4639

Browse files
committed
Fix signatures
Function overloads were incorrect. Either two fixed params or one, depending on whether the `arity` argument provided.
1 parent 37116cd commit 4db4639

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/node_modules/@stdlib/utils/curry-right/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type Closure = ( v: any ) => any;
5050
* var sum = f( 2 )( 3 );
5151
* // returns 5
5252
*/
53-
declare function curryRight( fcn: Function, arity?: number, thisArg?: any ): Closure; // tslint-disable-line max-line-length
53+
declare function curryRight( fcn: Function, arity: number, thisArg?: any ): Closure; // tslint-disable-line max-line-length
5454

5555
/**
5656
* Transforms a function into a sequence of functions each accepting a single argument.

lib/node_modules/@stdlib/utils/curry/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type Closure = ( v: any ) => any;
4949
* var sum = f( 2 )( 3 );
5050
* // returns 5
5151
*/
52-
declare function curry( fcn: Function, arity?: number, thisArg?: any ): Closure;
52+
declare function curry( fcn: Function, arity: number, thisArg?: any ): Closure;
5353

5454
/**
5555
* Transforms a function into a sequence of functions each accepting a single argument.

0 commit comments

Comments
 (0)