@@ -84,7 +84,7 @@ import flatten = require( './index' );
84
84
flatten ( zeros ( 'generic' , [ 2 , 2 , 2 ] , 'row-major' ) , ( x : number ) : number => x ) ; // $ExpectError
85
85
}
86
86
87
- // The compiler throws an error if the function is provided a second argument with invalid `depth` option...
87
+ // The compiler throws an error if the function is provided a second argument with an invalid `depth` option...
88
88
{
89
89
flatten ( zeros ( 'float64' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'depth' : '5' } ) ; // $ExpectError
90
90
flatten ( zeros ( 'float64' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'depth' : true } ) ; // $ExpectError
@@ -108,7 +108,7 @@ import flatten = require( './index' );
108
108
flatten ( zeros ( 'generic' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'depth' : ( x : number ) : number => x } ) ; // $ExpectError
109
109
}
110
110
111
- // The compiler throws an error if the function is provided a second argument with invalid `order` option...
111
+ // The compiler throws an error if the function is provided a second argument with an invalid `order` option...
112
112
{
113
113
flatten ( zeros ( 'float64' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'order' : '5' } ) ; // $ExpectError
114
114
flatten ( zeros ( 'float64' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'order' : true } ) ; // $ExpectError
@@ -132,7 +132,7 @@ import flatten = require( './index' );
132
132
flatten ( zeros ( 'generic' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'order' : ( x : number ) : number => x } ) ; // $ExpectError
133
133
}
134
134
135
- // The compiler throws an error if the function is provided a second argument with invalid `dtype` option...
135
+ // The compiler throws an error if the function is provided a second argument with an invalid `dtype` option...
136
136
{
137
137
flatten ( zeros ( 'float64' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'dtype' : '5' } ) ; // $ExpectError
138
138
flatten ( zeros ( 'float64' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'dtype' : true } ) ; // $ExpectError
0 commit comments