@@ -260,12 +260,12 @@ import createFactory = require( './index' );
260
260
const factory = createFactory < number , number > ( exponential , dtypes , dtypes , policies ) ;
261
261
262
262
const r1 = factory ( ) ;
263
- r1 ( [ 2 , 2 ] , 2.0 , '5' ) ; // $ExpectError
264
- r1 ( [ 2 , 2 ] , 2.0 , true ) ; // $ExpectError
265
- r1 ( [ 2 , 2 ] , 2.0 , false ) ; // $ExpectError
266
- r1 ( [ 2 , 2 ] , 2.0 , null ) ; // $ExpectError
267
- r1 ( [ 2 , 2 ] , 2.0 , [ ] ) ; // $ExpectError
268
- r1 ( [ 2 , 2 ] , 2.0 , ( x : number ) : number => x ) ; // $ExpectError
263
+ r1 ( [ 2 , 2 ] , 2.0 , '5' ) ; // $ExpectError
264
+ r1 ( [ 2 , 2 ] , 2.0 , true ) ; // $ExpectError
265
+ r1 ( [ 2 , 2 ] , 2.0 , false ) ; // $ExpectError
266
+ r1 ( [ 2 , 2 ] , 2.0 , null ) ; // $ExpectError
267
+ r1 ( [ 2 , 2 ] , 2.0 , [ ] ) ; // $ExpectError
268
+ r1 ( [ 2 , 2 ] , 2.0 , ( x : number ) : number => x ) ; // $ExpectError
269
269
}
270
270
271
271
// The compiler throws an error if the returned function is provided an invalid `dtype` option...
@@ -278,14 +278,14 @@ import createFactory = require( './index' );
278
278
const factory = createFactory < number , number > ( exponential , dtypes , dtypes , policies ) ;
279
279
280
280
const r1 = factory ( ) ;
281
- r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : '5' } ) ; // $ExpectError
282
- r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : 5 } ) ; // $ExpectError
283
- r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : true } ) ; // $ExpectError
284
- r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : false } ) ; // $ExpectError
285
- r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : null } ) ; // $ExpectError
286
- r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : [ ] } ) ; // $ExpectError
287
- r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : { } } ) ; // $ExpectError
288
- r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : ( x : number ) : number => x } ) ; // $ExpectError
281
+ r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : '5' } ) ; // $ExpectError
282
+ r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : 5 } ) ; // $ExpectError
283
+ r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : true } ) ; // $ExpectError
284
+ r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : false } ) ; // $ExpectError
285
+ r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : null } ) ; // $ExpectError
286
+ r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : [ ] } ) ; // $ExpectError
287
+ r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : { } } ) ; // $ExpectError
288
+ r1 ( [ 2 , 2 ] , 2.0 , { 'dtype' : ( x : number ) : number => x } ) ; // $ExpectError
289
289
}
290
290
291
291
// The compiler throws an error if the returned function is provided an unsupported number of arguments...
0 commit comments