Skip to content

Commit 10beb0d

Browse files
committed
docs: update type
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 3e48fcc commit 10beb0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/math/tools/unary/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function factory( fcn, idtypes, odtypes, policies ) {
147147
* @private
148148
* @param {ndarray} x - input array
149149
* @param {Options} [options] - options
150-
* @param {string} [options.dtype] - output array data type
150+
* @param {*} [options.dtype] - output array data type
151151
* @param {string} [options.order] - output array order
152152
* @throws {TypeError} first argument must be an ndarray
153153
* @throws {TypeError} first argument must have a supported data type

lib/node_modules/@stdlib/math/tools/unary/lib/validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var format = require( '@stdlib/string/format' );
3838
* @param {Object} opts - destination object
3939
* @param {Array} dtypes - list of supported output data types
4040
* @param {Object} options - options
41-
* @param {string} [options.dtype] - output array data type
41+
* @param {*} [options.dtype] - output array data type
4242
* @param {string} [options.order] - output array order
4343
* @returns {(Error|null)} null or an error object
4444
*
@@ -60,7 +60,7 @@ function validate( opts, dtypes, options ) {
6060
}
6161
if ( hasOwnProp( options, 'dtype' ) ) {
6262
opts.dtype = options.dtype;
63-
if ( !contains( dtypes, opts.dtype ) ) {
63+
if ( !contains( dtypes, String( opts.dtype ) ) ) {
6464
return new TypeError( format( 'invalid option. `%s` option must be one of the following: "%s". Option: `%s`.', 'dtype', join( dtypes, '", "' ), opts.dtype ) );
6565
}
6666
}

0 commit comments

Comments
 (0)