Skip to content

Commit a09bb73

Browse files
committed
Fix type tests
1 parent 0dba595 commit a09bb73

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/math/base/special/log/docs/types

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/math/base/special/log/docs/types/test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ import log = require( './index' );
3333
log( '5', 1 ); // $ExpectError
3434
log( [], 1 ); // $ExpectError
3535
log( {}, 2 ); // $ExpectError
36-
log( ( x ) => x, 2 ); // $ExpectError
36+
log( ( x: number ): number => x, 2 ); // $ExpectError
3737

3838
log( 9, true ); // $ExpectError
3939
log( 9, false ); // $ExpectError
4040
log( 5, '5' ); // $ExpectError
4141
log( 8, [] ); // $ExpectError
4242
log( 9, {} ); // $ExpectError
43-
log( 8, ( x ) => x ); // $ExpectError
43+
log( 8, ( x: number ): number => x ); // $ExpectError
4444

4545
log( [], true ); // $ExpectError
4646
log( {}, false ); // $ExpectError
4747
log( false, '5' ); // $ExpectError
48-
log( {}, [] ); // $ExpectErrorr
49-
log( '5', ( x ) => x ); // $ExpectError
48+
log( {}, [] ); // $ExpectError
49+
log( '5', ( x: number ): number => x ); // $ExpectError
5050
}
5151

5252
// The function does not compile if provided insufficient arguments...

0 commit comments

Comments
 (0)