Skip to content

Commit ab6a0db

Browse files
committed
Auto-generated commit
1 parent 064d78d commit ab6a0db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
/// <reference types="@stdlib/types"/>
2222

23-
import { Collection } from '@stdlib/types/array';
23+
import { Collection, Array3D } from '@stdlib/types/array';
2424

2525
/**
2626
* Returns a three-dimensional nested array filled with ones.
@@ -32,7 +32,7 @@ import { Collection } from '@stdlib/types/array';
3232
* var out = ones3d( [ 1, 1, 3 ] );
3333
* // returns [ [ [ 1.0, 1.0, 1.0 ] ] ]
3434
*/
35-
declare function ones3d( shape: Collection<number> ): Array<Array<Array<number>>>;
35+
declare function ones3d( shape: Collection<number> ): Array3D<number>;
3636

3737

3838
// EXPORTS //

docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import ones3d = require( './index' );
2323

2424
// The function returns a nested array...
2525
{
26-
ones3d( [ 1, 1, 3 ] ); // $ExpectType number[][][]
26+
ones3d( [ 1, 1, 3 ] ); // $ExpectType Array3D<number>
2727
}
2828

2929
// The compiler throws an error if the function is provided a first argument which is not an array of numbers...

0 commit comments

Comments
 (0)