Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -169,21 +169,21 @@ function isPositive( value: number ): boolean {
const x = [ false, false, true, false, false ];
const y = [ false, null, false, null, false, null, false, null, false, null ];

cuanyByRight.assign( x, y , '1', 0, isPositive ); // $ExpectError
cuanyByRight.assign( x, y , true, 0, isPositive ); // $ExpectError
cuanyByRight.assign( x, y , false, 0, isPositive ); // $ExpectError
cuanyByRight.assign( x, y , null, 0, isPositive ); // $ExpectError
cuanyByRight.assign( x, y , void 0, isPositive ); // $ExpectError
cuanyByRight.assign( x, y , {}, 0, isPositive ); // $ExpectError
cuanyByRight.assign( x, y , [], 0, isPositive ); // $ExpectError

cuanyByRight.assign( x, y , '1', 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y , true, 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y , false, 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y , null, 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y , void 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y , {}, 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y , [], 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y, '1', 0, isPositive ); // $ExpectError
cuanyByRight.assign( x, y, true, 0, isPositive ); // $ExpectError
cuanyByRight.assign( x, y, false, 0, isPositive ); // $ExpectError
cuanyByRight.assign( x, y, null, 0, isPositive ); // $ExpectError
cuanyByRight.assign( x, y, void 0, isPositive ); // $ExpectError
cuanyByRight.assign( x, y, {}, 0, isPositive ); // $ExpectError
cuanyByRight.assign( x, y, [], 0, isPositive ); // $ExpectError

cuanyByRight.assign( x, y, '1', 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y, true, 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y, false, 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y, null, 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y, void 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y, {}, 0, isPositive, {} ); // $ExpectError
cuanyByRight.assign( x, y, [], 0, isPositive, {} ); // $ExpectError
}

// The compiler throws an error if the `assign` method is provided a fourth argument which is not a number...
Expand Down
30 changes: 15 additions & 15 deletions lib/node_modules/@stdlib/array/base/cuany-by/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,21 +169,21 @@ function isPositive( value: number ): boolean {
const x = [ false, false, true, false, false ];
const y = [ false, null, false, null, false, null, false, null, false, null ];

cuanyBy.assign( x, y , '1', 0, isPositive ); // $ExpectError
cuanyBy.assign( x, y , true, 0, isPositive ); // $ExpectError
cuanyBy.assign( x, y , false, 0, isPositive ); // $ExpectError
cuanyBy.assign( x, y , null, 0, isPositive ); // $ExpectError
cuanyBy.assign( x, y , void 0, isPositive ); // $ExpectError
cuanyBy.assign( x, y , {}, 0, isPositive ); // $ExpectError
cuanyBy.assign( x, y , [], 0, isPositive ); // $ExpectError

cuanyBy.assign( x, y , '1', 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y , true, 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y , false, 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y , null, 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y , void 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y , {}, 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y , [], 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y, '1', 0, isPositive ); // $ExpectError
cuanyBy.assign( x, y, true, 0, isPositive ); // $ExpectError
cuanyBy.assign( x, y, false, 0, isPositive ); // $ExpectError
cuanyBy.assign( x, y, null, 0, isPositive ); // $ExpectError
cuanyBy.assign( x, y, void 0, isPositive ); // $ExpectError
cuanyBy.assign( x, y, {}, 0, isPositive ); // $ExpectError
cuanyBy.assign( x, y, [], 0, isPositive ); // $ExpectError

cuanyBy.assign( x, y, '1', 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y, true, 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y, false, 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y, null, 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y, void 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y, {}, 0, isPositive, {} ); // $ExpectError
cuanyBy.assign( x, y, [], 0, isPositive, {} ); // $ExpectError
}

// The compiler throws an error if the `assign` method is provided a fourth argument which is not a number...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
* @returns output array
*
* @example
* var x = [ false, false , true, false , false ];
* var x = [ false, false, true, false, false ];
*
* var y = cuany( x );
* // returns [ false, false, true, true, true ];
*/
( x: Collection | AccessorArrayLike<any> ): Array<boolean>;

Check warning on line 41 in lib/node_modules/@stdlib/array/base/cuany/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type

/**
* Cumulatively tests whether at least one element in an array is truthy and assigns the results to a provided output array.
Expand All @@ -56,7 +56,7 @@
* var arr = cuany.assign( x, y, 2, 0 );
* // returns [ false, null, false, null, true, null, true, null, true, null ];
*/
assign<T, U extends Collection<T> | AccessorArrayLike<T>>( x: Collection | AccessorArrayLike<any>, y: U, stride: number, offset: number ): U;

Check warning on line 59 in lib/node_modules/@stdlib/array/base/cuany/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected any. Specify a different type
}

/**
Expand Down
14 changes: 7 additions & 7 deletions lib/node_modules/@stdlib/array/base/cuany/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ import cuany = require( './index' );
const x = [ false, false, true, false, false ];
const y = [ false, null, false, null, false, null, false, null, false, null ];

cuany.assign( x, y , '1', 0 ); // $ExpectError
cuany.assign( x, y , true, 0 ); // $ExpectError
cuany.assign( x, y , false, 0 ); // $ExpectError
cuany.assign( x, y , null, 0 ); // $ExpectError
cuany.assign( x, y , void 0, 0 ); // $ExpectError
cuany.assign( x, y , {}, 0 ); // $ExpectError
cuany.assign( x, y , [], 0 ); // $ExpectError
cuany.assign( x, y, '1', 0 ); // $ExpectError
cuany.assign( x, y, true, 0 ); // $ExpectError
cuany.assign( x, y, false, 0 ); // $ExpectError
cuany.assign( x, y, null, 0 ); // $ExpectError
cuany.assign( x, y, void 0, 0 ); // $ExpectError
cuany.assign( x, y, {}, 0 ); // $ExpectError
cuany.assign( x, y, [], 0 ); // $ExpectError
}

// The compiler throws an error if the `assign` method is provided a fourth argument which is not a number...
Expand Down
14 changes: 7 additions & 7 deletions lib/node_modules/@stdlib/array/base/cuevery/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ import cuevery = require( './index' );
const x = [ false, false, true, false, false ];
const y = [ false, null, false, null, false, null, false, null, false, null ];

cuevery.assign( x, y , '1', 0 ); // $ExpectError
cuevery.assign( x, y , true, 0 ); // $ExpectError
cuevery.assign( x, y , false, 0 ); // $ExpectError
cuevery.assign( x, y , null, 0 ); // $ExpectError
cuevery.assign( x, y , void 0, 0 ); // $ExpectError
cuevery.assign( x, y , {}, 0 ); // $ExpectError
cuevery.assign( x, y , [], 0 ); // $ExpectError
cuevery.assign( x, y, '1', 0 ); // $ExpectError
cuevery.assign( x, y, true, 0 ); // $ExpectError
cuevery.assign( x, y, false, 0 ); // $ExpectError
cuevery.assign( x, y, null, 0 ); // $ExpectError
cuevery.assign( x, y, void 0, 0 ); // $ExpectError
cuevery.assign( x, y, {}, 0 ); // $ExpectError
cuevery.assign( x, y, [], 0 ); // $ExpectError
}

// The compiler throws an error if the `assign` method is provided a fourth argument which is not a number...
Expand Down
14 changes: 7 additions & 7 deletions lib/node_modules/@stdlib/array/base/cunone/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ import cunone = require( './index' );
const x = [ false, false, true, false, false ];
const y = [ false, null, false, null, false, null, false, null, false, null ];

cunone.assign( x, y , '1', 0 ); // $ExpectError
cunone.assign( x, y , true, 0 ); // $ExpectError
cunone.assign( x, y , false, 0 ); // $ExpectError
cunone.assign( x, y , null, 0 ); // $ExpectError
cunone.assign( x, y , void 0, 0 ); // $ExpectError
cunone.assign( x, y , {}, 0 ); // $ExpectError
cunone.assign( x, y , [], 0 ); // $ExpectError
cunone.assign( x, y, '1', 0 ); // $ExpectError
cunone.assign( x, y, true, 0 ); // $ExpectError
cunone.assign( x, y, false, 0 ); // $ExpectError
cunone.assign( x, y, null, 0 ); // $ExpectError
cunone.assign( x, y, void 0, 0 ); // $ExpectError
cunone.assign( x, y, {}, 0 ); // $ExpectError
cunone.assign( x, y, [], 0 ); // $ExpectError
}

// The compiler throws an error if the `assign` method is provided a fourth argument which is not a number...
Expand Down
12 changes: 6 additions & 6 deletions lib/node_modules/@stdlib/array/complex128/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,9 @@ declare class Complex128Array implements Complex128ArrayInterface {
*
* var arr = new Complex128Array( 3 );
*
* arr.set( [ 1.0 , 1.0 ], 0 );
* arr.set( [ 2.0 , 2.0 ], 1 );
* arr.set( [ 3.0 , 3.0 ], 2 );
* arr.set( [ 1.0, 1.0 ], 0 );
* arr.set( [ 2.0, 2.0 ], 1 );
* arr.set( [ 3.0, 3.0 ], 2 );
*
* var bool = arr.every( predicate );
* // returns true
Expand Down Expand Up @@ -1006,9 +1006,9 @@ declare class Complex128Array implements Complex128ArrayInterface {
*
* var arr = new Complex128Array( 3 );
*
* arr.set( [ 1.0 , -1.0 ], 0 );
* arr.set( [ 2.0 , 2.0 ], 1 );
* arr.set( [ 3.0 , -3.0 ], 2 );
* arr.set( [ 1.0, -1.0 ], 0 );
* arr.set( [ 2.0, 2.0 ], 1 );
* arr.set( [ 3.0, -3.0 ], 2 );
*
* var bool = arr.some( predicate );
* // returns true
Expand Down
12 changes: 6 additions & 6 deletions lib/node_modules/@stdlib/array/complex64/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,9 @@ declare class Complex64Array implements Complex64ArrayInterface {
*
* var arr = new Complex64Array( 3 );
*
* arr.set( [ 1.0 , 1.0 ], 0 );
* arr.set( [ 2.0 , 2.0 ], 1 );
* arr.set( [ 3.0 , 3.0 ], 2 );
* arr.set( [ 1.0, 1.0 ], 0 );
* arr.set( [ 2.0, 2.0 ], 1 );
* arr.set( [ 3.0, 3.0 ], 2 );
*
* var bool = arr.every( predicate );
* // returns true
Expand Down Expand Up @@ -1020,9 +1020,9 @@ declare class Complex64Array implements Complex64ArrayInterface {
*
* var arr = new Complex64Array( 3 );
*
* arr.set( [ 1.0 , -1.0 ], 0 );
* arr.set( [ 2.0 , 2.0 ], 1 );
* arr.set( [ 3.0 , -3.0 ], 2 );
* arr.set( [ 1.0, -1.0 ], 0 );
* arr.set( [ 2.0, 2.0 ], 1 );
* arr.set( [ 3.0, -3.0 ], 2 );
*
* var bool = arr.some( predicate );
* // returns true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5129,11 +5129,11 @@ interface Namespace {
*
* @example
* var out = ns.frexp( Infinity );
* // returns [ Infinity , 0 ]
* // returns [ Infinity, 0 ]
*
* @example
* var out = ns.frexp( -Infinity );
* // returns [ -Infinity , 0 ]
* // returns [ -Infinity, 0 ]
*/
frexp: typeof frexp;

Expand Down Expand Up @@ -5167,11 +5167,11 @@ interface Namespace {
*
* @example
* var out = ns.frexpf( Infinity );
* // returns [ Infinity , 0 ]
* // returns [ Infinity, 0 ]
*
* @example
* var out = ns.frexpf( -Infinity );
* // returns [ -Infinity , 0 ]
* // returns [ -Infinity, 0 ]
*/
frexpf: typeof frexpf;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ interface Frexp {
*
* @example
* var out = frexp( Infinity );
* // returns [ Infinity , 0 ]
* // returns [ Infinity, 0 ]
*
* @example
* var out = frexp( -Infinity );
* // returns [ -Infinity , 0 ]
* // returns [ -Infinity, 0 ]
*/
( x: number ): [ number, number ];

Expand Down Expand Up @@ -123,11 +123,11 @@ interface Frexp {
*
* @example
* var out = frexp( Infinity );
* // returns [ Infinity , 0 ]
* // returns [ Infinity, 0 ]
*
* @example
* var out = frexp( -Infinity );
* // returns [ -Infinity , 0 ]
* // returns [ -Infinity, 0 ]
*/
declare var frexp: Frexp;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ interface Frexpf {
*
* @example
* var out = frexpf( Infinity );
* // returns [ Infinity , 0 ]
* // returns [ Infinity, 0 ]
*
* @example
* var out = frexpf( -Infinity );
* // returns [ -Infinity , 0 ]
* // returns [ -Infinity, 0 ]
*/
( x: number ): [ number, number ];

Expand Down Expand Up @@ -123,11 +123,11 @@ interface Frexpf {
*
* @example
* var out = frexpf( Infinity );
* // returns [ Infinity , 0 ]
* // returns [ Infinity, 0 ]
*
* @example
* var out = frexpf( -Infinity );
* // returns [ -Infinity , 0 ]
* // returns [ -Infinity, 0 ]
*/
declare var frexpf: Frexpf;

Expand Down
12 changes: 6 additions & 6 deletions lib/node_modules/@stdlib/object/any-own-by/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ const obj = {

// The compiler throws an error if the function is provided a second argument which is not a function...
{
anyOwnBy( obj , 2 ); // $ExpectError
anyOwnBy( obj , false ); // $ExpectError
anyOwnBy( obj , true ); // $ExpectError
anyOwnBy( obj , 'abc' ); // $ExpectError
anyOwnBy( obj , {} ); // $ExpectError
anyOwnBy( obj , [] ); // $ExpectError
anyOwnBy( obj, 2 ); // $ExpectError
anyOwnBy( obj, false ); // $ExpectError
anyOwnBy( obj, true ); // $ExpectError
anyOwnBy( obj, 'abc' ); // $ExpectError
anyOwnBy( obj, {} ); // $ExpectError
anyOwnBy( obj, [] ); // $ExpectError
}

// The compiler throws an error if the function is provided an invalid number of arguments...
Expand Down
12 changes: 6 additions & 6 deletions lib/node_modules/@stdlib/object/every-own-by/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ var obj = {

// The compiler throws an error if the function is provided a second argument which is not a function...
{
everyOwnBy( obj , 2 ); // $ExpectError
everyOwnBy( obj , false ); // $ExpectError
everyOwnBy( obj , true ); // $ExpectError
everyOwnBy( obj , 'abc' ); // $ExpectError
everyOwnBy( obj , {} ); // $ExpectError
everyOwnBy( obj , [] ); // $ExpectError
everyOwnBy( obj, 2 ); // $ExpectError
everyOwnBy( obj, false ); // $ExpectError
everyOwnBy( obj, true ); // $ExpectError
everyOwnBy( obj, 'abc' ); // $ExpectError
everyOwnBy( obj, {} ); // $ExpectError
everyOwnBy( obj, [] ); // $ExpectError
}

// The compiler throws an error if the function is provided an invalid number of arguments...
Expand Down
12 changes: 6 additions & 6 deletions lib/node_modules/@stdlib/object/none-own-by/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ const obj = {

// The compiler throws an error if the function is provided a second argument which is not a function...
{
noneOwnBy( obj , 2 ); // $ExpectError
noneOwnBy( obj , false ); // $ExpectError
noneOwnBy( obj , true ); // $ExpectError
noneOwnBy( obj , 'abc' ); // $ExpectError
noneOwnBy( obj , {} ); // $ExpectError
noneOwnBy( obj , [] ); // $ExpectError
noneOwnBy( obj, 2 ); // $ExpectError
noneOwnBy( obj, false ); // $ExpectError
noneOwnBy( obj, true ); // $ExpectError
noneOwnBy( obj, 'abc' ); // $ExpectError
noneOwnBy( obj, {} ); // $ExpectError
noneOwnBy( obj, [] ); // $ExpectError
}

// The compiler throws an error if the function is provided an invalid number of arguments...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import papplyRight = require( './index' );
// The function returns a partially applied function...
{
papplyRight( ( x: number, y: number ): number => x + y, 3 ); // $ExpectType Closure
papplyRight( ( x: number, y: number, z: number ): number => x + y + z , 3, 4 ); // $ExpectType Closure
papplyRight( ( x: number, y: number, z: number ): number => x + y + z, 3, 4 ); // $ExpectType Closure
}

// The compiler throws an error if the function is provided a first argument which is not a function...
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/utils/papply/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import papply = require( './index' );
// The function returns a partially applied function...
{
papply( ( x: number, y: number ): number => x + y, 3 ); // $ExpectType Closure
papply( ( x: number, y: number, z: number ): number => x + y + z , 3, 4 ); // $ExpectType Closure
papply( ( x: number, y: number, z: number ): number => x + y + z, 3, 4 ); // $ExpectType Closure
}

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