Skip to content

Commit 39c0346

Browse files
committed
Auto-generated commit
1 parent 3d8e59d commit 39c0346

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/types/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import contains = require( './index' );
3030
contains( [ 1, 2, 3, 4, 5, 6 ], 2, 3 ); // $ExpectType boolean
3131
}
3232

33-
// The function does not compile if provided arguments having invalid types...
33+
// The compiler throws an error if the function is provided arguments having invalid types...
3434
{
3535
contains( true, 'd' ); // $ExpectError
3636
contains( false, 'd' ); // $ExpectError
@@ -44,7 +44,7 @@ import contains = require( './index' );
4444
contains( 'abd', 'a', ( x: number ): number => x ); // $ExpectError
4545
}
4646

47-
// The function does not compile if provided insufficient arguments...
47+
// The compiler throws an error if the function is provided insufficient arguments...
4848
{
4949
contains(); // $ExpectError
5050
contains( 'abc' ); // $ExpectError

0 commit comments

Comments
 (0)