@@ -27,7 +27,7 @@ import ndarray2array = require( './index' );
27
27
ndarray2array ( [ 1 , 2 , 3 , 4 ] , [ 2 , 2 ] , [ 2 , 1 ] , 0 , 'column-major' ) ; // $ExpectType any[]
28
28
}
29
29
30
- // The function does not compile if provided a first argument which is not an array-like object or buffer...
30
+ // The compiler throws an error if the function is provided a first argument which is not an array-like object or buffer...
31
31
{
32
32
const shape = [ 2 , 2 ] ;
33
33
const strides = [ 2 , 1 ] ;
@@ -40,7 +40,7 @@ import ndarray2array = require( './index' );
40
40
ndarray2array ( undefined , shape , strides , offset , order ) ; // $ExpectError
41
41
}
42
42
43
- // The function does not compile if provided a second argument which is not an array-like object containing numbers...
43
+ // The compiler throws an error if the function is provided a second argument which is not an array-like object containing numbers...
44
44
{
45
45
const buffer = [ 1 , 2 , 3 , 4 ] ;
46
46
const strides = [ 2 , 1 ] ;
@@ -56,7 +56,7 @@ import ndarray2array = require( './index' );
56
56
ndarray2array ( buffer , ( x : number ) : number => x , strides , offset , order ) ; // $ExpectError
57
57
}
58
58
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...
60
60
{
61
61
const buffer = [ 1 , 2 , 3 , 4 ] ;
62
62
const shape = [ 2 , 2 ] ;
@@ -72,7 +72,7 @@ import ndarray2array = require( './index' );
72
72
ndarray2array ( buffer , shape , ( x : number ) : number => x , offset , order ) ; // $ExpectError
73
73
}
74
74
75
- // The function does not compile if provided a fourth argument which is not a number...
75
+ // The compiler throws an error if the function is provided a fourth argument which is not a number...
76
76
{
77
77
const buffer = [ 1 , 2 , 3 , 4 ] ;
78
78
const shape = [ 2 , 2 ] ;
@@ -88,7 +88,7 @@ import ndarray2array = require( './index' );
88
88
ndarray2array ( buffer , shape , strides , ( x : number ) : number => x , order ) ; // $ExpectError
89
89
}
90
90
91
- // The function does not compile if provided a fifth argument which is not a known array order...
91
+ // The compiler throws an error if the function is provided a fifth argument which is not a known array order...
92
92
{
93
93
const buffer = [ 1 , 2 , 3 , 4 ] ;
94
94
const shape = [ 2 , 2 ] ;
@@ -104,7 +104,7 @@ import ndarray2array = require( './index' );
104
104
ndarray2array ( buffer , shape , strides , offset , ( x : number ) : number => x ) ; // $ExpectError
105
105
}
106
106
107
- // The function does not compile if provided insufficient arguments...
107
+ // The compiler throws an error if the function is provided insufficient arguments...
108
108
{
109
109
const buffer = [ 1 , 2 , 3 , 4 ] ;
110
110
const shape = [ 2 , 2 ] ;
0 commit comments