@@ -35,8 +35,8 @@ function fcn( value: number ): number {
35
35
{
36
36
const x = [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ;
37
37
38
- map2d ( x , [ 2 , 2 ] , fcn ) ; // $ExpectType Array<Array< number> >
39
- map2d ( x , [ 2 , 2 ] , fcn , { } ) ; // $ExpectType Array<Array< number> >
38
+ map2d ( x , [ 2 , 2 ] , fcn ) ; // $ExpectType Array2D< number>
39
+ map2d ( x , [ 2 , 2 ] , fcn , { } ) ; // $ExpectType Array2D< number>
40
40
}
41
41
42
42
// The compiler throws an error if the function is provided a first argument which is not a nested array...
@@ -119,8 +119,8 @@ function fcn( value: number ): number {
119
119
const x = [ [ 1.0 , 2.0 ] , [ 3.0 , 4.0 ] ] ;
120
120
const y = [ [ 0.0 , 0.0 ] , [ 0.0 , 0.0 ] ] ;
121
121
122
- map2d . assign ( x , y , [ 2 , 2 ] , fcn ) ; // $ExpectType Array<Array< number> >
123
- map2d . assign ( x , y , [ 2 , 2 ] , fcn , { } ) ; // $ExpectType Array<Array< number> >
122
+ map2d . assign ( x , y , [ 2 , 2 ] , fcn ) ; // $ExpectType Array2D< number>
123
+ map2d . assign ( x , y , [ 2 , 2 ] , fcn , { } ) ; // $ExpectType Array2D< number>
124
124
}
125
125
126
126
// The compiler throws an error if the `assign` method is provided a first argument which is not a nested array...
0 commit comments