Skip to content

Commit de17de3

Browse files
stdlib-botkgryte
andauthored
feat: update namespace TypeScript declarations
PR-URL: #2593 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com> Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com>
1 parent 71cf5a0 commit de17de3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/node_modules/@stdlib/ndarray/base/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2909,14 +2909,14 @@ interface Namespace {
29092909
* @returns zero-filled array
29102910
*
29112911
* @example
2912-
* var arr = ns.zeros( 'float32', [ 2, 2 ], 'row-major' );
2912+
* var arr = ns.zeros( 'float64', [ 2, 2 ], 'row-major' );
29132913
* // returns <ndarray>
29142914
*
29152915
* var sh = arr.shape;
29162916
* // returns [ 2, 2 ]
29172917
*
29182918
* var dt = arr.dtype;
2919-
* // returns 'float32'
2919+
* // returns 'float64'
29202920
*/
29212921
zeros: typeof zeros;
29222922

lib/node_modules/@stdlib/ndarray/docs/types/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,8 @@ interface Namespace {
598598
*
599599
* - If a `dtype` option is not provided and `value`
600600
*
601-
* - is a `number`, the default data type is the default real-valued floating-point data type.
601+
* - is a number, the default data type is the default real-valued floating-point data type.
602+
* - is a boolean, the default data type is the default boolean data type.
602603
* - is a complex number object of a known complex data type, the data type is the same as the provided value.
603604
* - is a complex number object of an unknown complex data type, the default data type is the default complex-valued floating-point data type.
604605
* - is any other value type, the default data type is `'generic'`.

0 commit comments

Comments
 (0)