@@ -84,7 +84,7 @@ import flatten = require( './index' );
8484 flatten ( zeros ( 'generic' , [ 2 , 2 , 2 ] , 'row-major' ) , ( x : number ) : number => x ) ; // $ExpectError
8585}
8686
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...
8888{
8989 flatten ( zeros ( 'float64' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'depth' : '5' } ) ; // $ExpectError
9090 flatten ( zeros ( 'float64' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'depth' : true } ) ; // $ExpectError
@@ -108,7 +108,7 @@ import flatten = require( './index' );
108108 flatten ( zeros ( 'generic' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'depth' : ( x : number ) : number => x } ) ; // $ExpectError
109109}
110110
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...
112112{
113113 flatten ( zeros ( 'float64' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'order' : '5' } ) ; // $ExpectError
114114 flatten ( zeros ( 'float64' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'order' : true } ) ; // $ExpectError
@@ -132,7 +132,7 @@ import flatten = require( './index' );
132132 flatten ( zeros ( 'generic' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'order' : ( x : number ) : number => x } ) ; // $ExpectError
133133}
134134
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...
136136{
137137 flatten ( zeros ( 'float64' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'dtype' : '5' } ) ; // $ExpectError
138138 flatten ( zeros ( 'float64' , [ 2 , 2 , 2 ] , 'row-major' ) , { 'dtype' : true } ) ; // $ExpectError
0 commit comments