@@ -26,7 +26,7 @@ import isBufferLengthCompatible = require( './index' );
2626 isBufferLengthCompatible ( 4 , [ 2 , 2 ] , [ 2 , 1 ] , 0 ) ; // $ExpectType boolean
2727}
2828
29- // The function does not compile if provided a first argument which is not a number...
29+ // The compiler throws an error if the function is provided a first argument which is not a number...
3030{
3131 const shape = [ 2 , 2 ] ;
3232 const strides = [ 2 , 1 ] ;
@@ -41,7 +41,7 @@ import isBufferLengthCompatible = require( './index' );
4141 isBufferLengthCompatible ( ( x : number ) : number => x , shape , strides , offset ) ; // $ExpectError
4242}
4343
44- // The function does not compile if provided a second argument which is not an array-like object containing numbers...
44+ // The compiler throws an error if the function is provided a second argument which is not an array-like object containing numbers...
4545{
4646 const len = 4 ;
4747 const strides = [ 2 , 1 ] ;
@@ -56,7 +56,7 @@ import isBufferLengthCompatible = require( './index' );
5656 isBufferLengthCompatible ( len , ( x : number ) : number => x , strides , offset ) ; // $ExpectError
5757}
5858
59- // The function does not compile if provided a third argument which is not an array-like object containing numbers...
59+ // The compiler throws an error if the function is provided a third argument which is not an array-like object containing numbers...
6060{
6161 const len = 4 ;
6262 const shape = [ 2 , 2 ] ;
@@ -71,7 +71,7 @@ import isBufferLengthCompatible = require( './index' );
7171 isBufferLengthCompatible ( len , shape , ( x : number ) : number => x , offset ) ; // $ExpectError
7272}
7373
74- // The function does not compile if provided a fourth argument which is not a number...
74+ // The compiler throws an error if the function is provided a fourth argument which is not a number...
7575{
7676 const len = 4 ;
7777 const shape = [ 2 , 2 ] ;
@@ -86,7 +86,7 @@ import isBufferLengthCompatible = require( './index' );
8686 isBufferLengthCompatible ( len , shape , strides , ( x : number ) : number => x ) ; // $ExpectError
8787}
8888
89- // The function does not compile if provided insufficient arguments...
89+ // The compiler throws an error if the function is provided insufficient arguments...
9090{
9191 isBufferLengthCompatible ( ) ; // $ExpectError
9292 isBufferLengthCompatible ( 4 ) ; // $ExpectError
0 commit comments