Skip to content

Commit 12bf9cf

Browse files
committed
Update type names
1 parent 2884828 commit 12bf9cf

9 files changed

Lines changed: 20 additions & 20 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @param v - curried function parameter
2525
* @returns partially applied curry function or curried function result
2626
*/
27-
type Curried = ( v: any ) => any;
27+
type Closure = ( v: any ) => any;
2828

2929
/**
3030
* Transforms a function into a sequence of functions each accepting a single argument.
@@ -50,7 +50,7 @@ type Curried = ( v: any ) => any;
5050
* var sum = f( 2 )( 3 );
5151
* // returns 5
5252
*/
53-
declare function curryRight( fcn: Function, arity?: number, thisArg?: any ): Curried; // tslind-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
// EXPORTS //

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import curryRight = require( './index' );
2323

2424
// The function returns a function...
2525
{
26-
curryRight( ( x: number, y: number ): number => x + y ); // $ExpectType Curried
27-
curryRight( ( x: number, y: number ): number => x + y, 2 ); // $ExpectType Curried
28-
curryRight( ( x: number, y: number ): number => x + y, 2, {} ); // $ExpectType Curried
26+
curryRight( ( x: number, y: number ): number => x + y ); // $ExpectType Closure
27+
curryRight( ( x: number, y: number ): number => x + y, 2 ); // $ExpectType Closure
28+
curryRight( ( x: number, y: number ): number => x + y, 2, {} ); // $ExpectType Closure
2929
}
3030

3131
// The compiler throws an error if the function is provided a first argument other than a function...

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @param v - curried function parameter
2525
* @returns partially applied curry function or curried function result
2626
*/
27-
type Curried = ( v: any ) => any;
27+
type Closure = ( v: any ) => any;
2828

2929
/**
3030
* Transforms a function into a sequence of functions each accepting a single argument.
@@ -49,7 +49,7 @@ type Curried = ( v: any ) => any;
4949
* var sum = f( 2 )( 3 );
5050
* // returns 5
5151
*/
52-
declare function curry( fcn: Function, arity?: number, thisArg?: any ): Curried;
52+
declare function curry( fcn: Function, arity?: number, thisArg?: any ): Closure;
5353

5454

5555
// EXPORTS //

lib/node_modules/@stdlib/utils/curry/docs/types/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import curry = require( './index' );
2323

2424
// The function returns a function...
2525
{
26-
curry( ( x: number, y: number ): number => x + y ); // $ExpectType Curried
27-
curry( ( x: number, y: number ): number => x + y, 2 ); // $ExpectType Curried
28-
curry( ( x: number, y: number ): number => x + y, 2, {} ); // $ExpectType Curried
26+
curry( ( x: number, y: number ): number => x + y ); // $ExpectType Closure
27+
curry( ( x: number, y: number ): number => x + y, 2 ); // $ExpectType Closure
28+
curry( ( x: number, y: number ): number => x + y, 2, {} ); // $ExpectType Closure
2929
}
3030

3131
// The compiler throws an error if the function is provided a first argument other than a function...

lib/node_modules/@stdlib/utils/escape-regexp-string/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import rescape = require( './index' );
2626
rescape( '[A-Z]*' ); // $ExpectType string
2727
}
2828

29-
// The function does not compile if provided a value other than a string...
29+
// The compiler throws an error if the function is provided a value other than a string...
3030
{
3131
rescape( true ); // $ExpectError
3232
rescape( false ); // $ExpectError
@@ -36,7 +36,7 @@ import rescape = require( './index' );
3636
rescape( ( x: number ): number => x ); // $ExpectError
3737
}
3838

39-
// The function does not compile if provided insufficient arguments...
39+
// The compiler throws an error if the function is provided insufficient arguments...
4040
{
4141
rescape(); // $ExpectError
4242
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @param args - function arguments
2525
* @returns partially applied function result
2626
*/
27-
type AppliedFunction = ( ...args: Array<any> ) => any;
27+
type Closure = ( ...args: Array<any> ) => any;
2828

2929
/**
3030
* Returns a function of smaller arity by partially applying arguments from the right.
@@ -46,7 +46,7 @@ type AppliedFunction = ( ...args: Array<any> ) => any;
4646
* str = toGrace( 'Thank you' );
4747
* // returns 'Thank you, Grace Hopper.'
4848
*/
49-
declare function papplyRight( fcn: Function, ...args: Array<any> ): AppliedFunction; // tslint-disable-line max-line-length
49+
declare function papplyRight( fcn: Function, ...args: Array<any> ): Closure; // tslint-disable-line max-line-length
5050

5151

5252
// EXPORTS //

lib/node_modules/@stdlib/utils/papply-right/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import papplyRight = require( './index' );
2323

2424
// The function returns a partially applied function...
2525
{
26-
papplyRight( ( x: number, y: number ): number => x + y, 3 ); // $ExpectType AppliedFunction
27-
papplyRight( ( x: number, y: number, z: number ): number => x + y + z , 3, 4 ); // $ExpectType AppliedFunction
26+
papplyRight( ( x: number, y: number ): number => x + y, 3 ); // $ExpectType Closure
27+
papplyRight( ( x: number, y: number, z: number ): number => x + y + z , 3, 4 ); // $ExpectType Closure
2828
}
2929

3030
// The compiler throws an error if the function is provided a first argument which is not a function...

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @param args - function arguments
2525
* @returns partially applied function result
2626
*/
27-
type AppliedFunction = ( ...args: Array<any> ) => any;
27+
type Closure = ( ...args: Array<any> ) => any;
2828

2929
/**
3030
* Returns a function of smaller arity by partially applying arguments.
@@ -43,7 +43,7 @@ type AppliedFunction = ( ...args: Array<any> ) => any;
4343
* var sum = add2( 3 );
4444
* // returns 5
4545
*/
46-
declare function papply( fcn: Function, ...args: Array<any> ): AppliedFunction;
46+
declare function papply( fcn: Function, ...args: Array<any> ): Closure;
4747

4848

4949
// EXPORTS //

lib/node_modules/@stdlib/utils/papply/docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import papply = require( './index' );
2323

2424
// The function returns a partially applied function...
2525
{
26-
papply( ( x: number, y: number ): number => x + y, 3 ); // $ExpectType AppliedFunction
27-
papply( ( x: number, y: number, z: number ): number => x + y + z , 3, 4 ); // $ExpectType AppliedFunction
26+
papply( ( x: number, y: number ): number => x + y, 3 ); // $ExpectType Closure
27+
papply( ( x: number, y: number, z: number ): number => x + y + z , 3, 4 ); // $ExpectType Closure
2828
}
2929

3030
// The compiler throws an error if the function is provided a first argument which is not a function...

0 commit comments

Comments
 (0)