Skip to content

Commit ef87605

Browse files
committed
test: fix expected type
1 parent 42e980a commit ef87605

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/array/base/map2d/docs/types

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/array/base/map2d/docs/types/test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ function fcn( value: number ): number {
3535
{
3636
const x = [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ];
3737

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>
4040
}
4141

4242
// 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 {
119119
const x = [ [ 1.0, 2.0 ], [ 3.0, 4.0 ] ];
120120
const y = [ [ 0.0, 0.0 ], [ 0.0, 0.0 ] ];
121121

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>
124124
}
125125

126126
// The compiler throws an error if the `assign` method is provided a first argument which is not a nested array...

0 commit comments

Comments
 (0)