Skip to content

Commit 65aa64a

Browse files
committed
chore: minor clean-up
--- 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: passed - 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: passed - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent dad3808 commit 65aa64a

File tree

5 files changed

+20
-4
lines changed

5 files changed

+20
-4
lines changed

lib/node_modules/@stdlib/ndarray/base/quaternary-loop-interchange-order/docs/types/test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ import quaternaryLoopOrder = require( './index' );
7474
quaternaryLoopOrder( sh, sx, '5', sz, sw, su ); // $ExpectError
7575
quaternaryLoopOrder( sh, sx, 123, sz, sw, su ); // $ExpectError
7676
quaternaryLoopOrder( sh, sx, {}, sz, sw, su ); // $ExpectError
77+
quaternaryLoopOrder( sh, sx, ( x: number ): number => x, sz, sw, su ); // $ExpectError
7778
}
7879

7980
// The compiler throws an error if the function is provided a fourth argument which is not an array-like object of numbers...
@@ -106,6 +107,21 @@ import quaternaryLoopOrder = require( './index' );
106107
quaternaryLoopOrder( sh, sx, sy, sz, ( x: number ): number => x, su ); // $ExpectError
107108
}
108109

110+
// The compiler throws an error if the function is provided a sixth argument which is not an array-like object of numbers...
111+
{
112+
const sh = [ 2, 2 ];
113+
const sx = [ 2, 1 ];
114+
const sy = [ 2, 1 ];
115+
const sz = [ 2, 1 ];
116+
const sw = [ 4, 2 ];
117+
quaternaryLoopOrder( sh, sx, sy, sz, sw, true ); // $ExpectError
118+
quaternaryLoopOrder( sh, sx, sy, sz, sw, false ); // $ExpectError
119+
quaternaryLoopOrder( sh, sx, sy, sz, sw, '5' ); // $ExpectError
120+
quaternaryLoopOrder( sh, sx, sy, sz, sw, 123 ); // $ExpectError
121+
quaternaryLoopOrder( sh, sx, sy, sz, sw, {} ); // $ExpectError
122+
quaternaryLoopOrder( sh, sx, sy, sz, sw, ( x: number ): number => x ); // $ExpectError
123+
}
124+
109125
// The compiler throws an error if the function is provided an unsupported number of arguments...
110126
{
111127
const sh = [ 2, 2 ];

lib/node_modules/@stdlib/stats/midrange-by/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ interface Unary {
234234
* var array = require( '@stdlib/ndarray/array' );
235235
* var zeros = require( '@stdlib/ndarray/zeros' );
236236
*
237-
* var x = array( [ -1.0, 2.0, -3.0 ] )
237+
* var x = array( [ -1.0, 2.0, -3.0 ] );
238238
* var y = zeros( [] );
239239
*
240240
* function clbk( value ) {

lib/node_modules/@stdlib/stats/nanmidrange-by/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ limitations under the License.
2424
2525
<section class="intro">
2626

27-
The [**mid-range**][mid-range] is defined as the arithmetic mean of the maximum and minimum values in a data set. The measure is the midpoint of the range and a measure of central tendency.
27+
The [**mid-range**][mid-range], or **mid-extreme**, is the arithmetic mean of the maximum and minimum values in a data set. The measure is the midpoint of the range and a measure of central tendency.
2828

2929
</section>
3030

lib/node_modules/@stdlib/stats/strided/smskmaxabs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Computes the maximum absolute value of a single-precision floating-point strided
230230
const float x[] = { 1.0f, -2.0f, 2.0f };
231231
const uint8_t mask[] = { 0, 1, 0 };
232232

233-
float v = stdlib_strided_smskmaxabs( 3, x, 1, 0, mask, 1, 0 );
233+
float v = stdlib_strided_smskmaxabs_ndarray( 3, x, 1, 0, mask, 1, 0 );
234234
// returns 2.0f
235235
```
236236

lib/node_modules/@stdlib/wasm/module-wrapper/lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ setReadOnly( WasmModule.prototype, 'write', function write( byteOffset, values )
450450
* @throws {RangeError} output array exceeds module memory
451451
* @returns {WasmModule} wrapper instance
452452
*/
453-
setReadOnly( WasmModule.prototype, 'read', function write( byteOffset, out ) {
453+
setReadOnly( WasmModule.prototype, 'read', function read( byteOffset, out ) {
454454
var nb;
455455
if ( this._memory === null ) {
456456
throw new Error( 'invalid invocation. Unable to perform read operation, as the WebAssembly module is not bound to an underlying WebAssembly memory instance.' );

0 commit comments

Comments
 (0)