Skip to content

Commit bc2c13f

Browse files
committed
Add types
1 parent 35f1cb0 commit bc2c13f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/iter/every/docs/types/test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function iterator() {
5959
iterEvery( undefined ); // $ExpectError
6060
iterEvery( [] ); // $ExpectError
6161
iterEvery( {} ); // $ExpectError
62-
iterEvery( ( x ) => x ); // $ExpectError
62+
iterEvery( ( x: number ): number => x ); // $ExpectError
6363
}
6464

6565
// The compiler throws an error if the function is provided insufficient arguments...

lib/node_modules/@stdlib/iter/none/docs/types/test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function iterator() {
5959
iterNone( undefined ); // $ExpectError
6060
iterNone( [] ); // $ExpectError
6161
iterNone( {} ); // $ExpectError
62-
iterNone( ( x ) => x ); // $ExpectError
62+
iterNone( ( x: number ): number => x ); // $ExpectError
6363
}
6464

6565
// The compiler throws an error if the function is provided insufficient arguments...

lib/node_modules/@stdlib/iter/some/docs/types/test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function iterator() {
5959
iterSome( undefined, 3 ); // $ExpectError
6060
iterSome( [], 3 ); // $ExpectError
6161
iterSome( {}, 3 ); // $ExpectError
62-
iterSome( ( x ) => x, 3 ); // $ExpectError
62+
iterSome( ( x: number ): number => x, 3 ); // $ExpectError
6363
}
6464

6565
// The compiler throws an error if the function is provided a second argument which is not a number...
@@ -71,7 +71,7 @@ function iterator() {
7171
iterSome( iterator(), undefined ); // $ExpectError
7272
iterSome( iterator(), [] ); // $ExpectError
7373
iterSome( iterator(), {} ); // $ExpectError
74-
iterSome( iterator(), ( x ) => x ); // $ExpectError
74+
iterSome( iterator(), ( x: number ): number => x ); // $ExpectError
7575
}
7676

7777
// The compiler throws an error if the function is provided insufficient arguments...

0 commit comments

Comments
 (0)