Skip to content

Commit 8623eb4

Browse files
committed
Auto-generated commit
1 parent adeb2ea commit 8623eb4

File tree

7 files changed

+10
-7
lines changed

7 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ A total of 24 issues were closed in this release:
545545

546546
<details>
547547

548+
- [`dcfa4df`](https://github.com/stdlib-js/stdlib/commit/dcfa4df5171c24115771b773205ddf2fa06d669f) - **docs:** update type _(by Athan Reines)_
549+
- [`33dc96a`](https://github.com/stdlib-js/stdlib/commit/33dc96a398f87940f6c69fb2c70409bc5715398d) - **docs:** update type _(by Athan Reines)_
550+
- [`0e246db`](https://github.com/stdlib-js/stdlib/commit/0e246db52925591bd3b2ea56ac34ec5e40da65e3) - **refactor:** resolve dtype string and update documented type _(by Athan Reines)_
548551
- [`88745e0`](https://github.com/stdlib-js/stdlib/commit/88745e0ec1040dcb70585877c2e64aafd9dfe79d) - **docs:** update type _(by Athan Reines)_
549552
- [`e9d58ab`](https://github.com/stdlib-js/stdlib/commit/e9d58abd0288a87700361673ba08d816a11d68fa) - **refactor:** resolve dtype string and update documented type _(by Athan Reines)_
550553
- [`2c42c06`](https://github.com/stdlib-js/stdlib/commit/2c42c06899b8274a4cbb93928affe62062309308) - **docs:** update type _(by Athan Reines)_

base/binary-reduce-strided1d-dispatch-factory/docs/repl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fcn( x, y[, ...args][, options] )
7171
options: Object (optional)
7272
Function options.
7373

74-
options.dtype: string (optional)
74+
options.dtype: string|DataType (optional)
7575
Output array data type. Setting this option overrides the output data
7676
type policy.
7777

base/binary-reduce-strided1d-dispatch-factory/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function factory( table, idtypes, odtypes, policies ) {
124124
* @param {Options} [options] - function options
125125
* @param {IntegerArray} [options.dims] - list of dimensions over which to perform a reduction
126126
* @param {boolean} [options.keepdims=false] - boolean indicating whether the reduced dimensions should be included in the returned ndarray as singleton dimensions
127-
* @param {string} [options.dtype] - output ndarray data type
127+
* @param {*} [options.dtype] - output ndarray data type
128128
* @throws {TypeError} first argument must be an ndarray
129129
* @throws {TypeError} second argument must be an ndarray
130130
* @throws {TypeError} options argument must be an object

base/binary-reduce-strided1d-dispatch/docs/repl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
options: Object (optional)
7373
Function options.
7474

75-
options.dtype: string (optional)
75+
options.dtype: string|DataType (optional)
7676
Output array data type. Setting this option overrides the output data
7777
type policy.
7878

base/binary-reduce-strided1d-dispatch/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function BinaryStrided1dDispatch( table, idtypes, odtypes, policies ) {
193193
* @param {Options} [options] - function options
194194
* @param {IntegerArray} [options.dims] - list of dimensions over which to perform a reduction
195195
* @param {boolean} [options.keepdims=false] - boolean indicating whether the reduced dimensions should be included in the returned ndarray as singleton dimensions
196-
* @param {string} [options.dtype] - output ndarray data type
196+
* @param {*} [options.dtype] - output ndarray data type
197197
* @throws {TypeError} first argument must be an ndarray-like object
198198
* @throws {TypeError} second argument must be an ndarray-like object
199199
* @throws {TypeError} options argument must be an object

base/binary-reduce-strided1d-dispatch/lib/validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var format = require( '@stdlib/string/format' );
4343
* @param {Options} options - function options
4444
* @param {boolean} [options.keepdims] - boolean indicating whether the reduced dimensions should be included in the returned ndarray as singleton dimensions
4545
* @param {IntegerArray} [options.dims] - list of dimensions over which to perform a reduction
46-
* @param {string} [options.dtype] - output ndarray data type
46+
* @param {*} [options.dtype] - output ndarray data type
4747
* @returns {(Error|null)} null or an error object
4848
*
4949
* @example
@@ -85,7 +85,7 @@ function validate( opts, ndims, dtypes, options ) {
8585
}
8686
if ( hasOwnProp( options, 'dtype' ) ) {
8787
opts.dtype = options.dtype;
88-
if ( !contains( dtypes, opts.dtype ) ) {
88+
if ( !contains( dtypes, String( opts.dtype ) ) ) {
8989
return new TypeError( format( 'invalid option. `%s` option must be one of the following: "%s". Option: `%s`.', 'dtype', join( dtypes, '", "' ), opts.dtype ) );
9090
}
9191
}

base/binary-reduce-strided1d/lib/reshape_strategy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ function copy( len, workspace ) {
186186
*
187187
* @private
188188
* @param {ndarrayLike} x - input ndarray
189-
* @param {string} x.dtype - input ndarray data type
189+
* @param {*} x.dtype - input ndarray data type
190190
* @param {Collection} x.data - input ndarray data buffer
191191
* @param {NonNegativeIntegerArray} x.shape - input ndarray shape
192192
* @param {IntegerArray} x.strides - input ndarray strides

0 commit comments

Comments
 (0)