Skip to content

Commit cdb8498

Browse files
committed
Auto-generated commit
1 parent 6434c47 commit cdb8498

File tree

7 files changed

+20
-13
lines changed

7 files changed

+20
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ A total of 35 issues were closed in this release:
644644

645645
<details>
646646

647+
- [`ac2734e`](https://github.com/stdlib-js/stdlib/commit/ac2734ecf26371d363be61dbb4f3448c9cb964d4) - **docs:** address lint errors in TSDoc comments _(by Philipp Burckhardt)_
647648
- [`4d90d1a`](https://github.com/stdlib-js/stdlib/commit/4d90d1a8908b2328735f43fccaca8e9a1daffb35) - **docs:** fix example code in TSDoc declarations _(by Philipp Burckhardt)_
648649
- [`0eda9b1`](https://github.com/stdlib-js/stdlib/commit/0eda9b1af1d384b1a6be6fe1e80b36a32f69d55c) - **chore:** specify ESLint doctest alias _(by Philipp Burckhardt)_
649650
- [`2ffc422`](https://github.com/stdlib-js/stdlib/commit/2ffc422e0a5e583d45776ea7efc359186379bb0c) - **docs:** fix TSDoc return annotation values and example code _(by Philipp Burckhardt)_

base/sub2ind/docs/types/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* eslint-disable jsdoc/check-param-names */
20+
1921
// TypeScript Version: 4.1
2022

2123
/// <reference types="@stdlib/types"/>
@@ -118,7 +120,7 @@ import { ArrayLike } from '@stdlib/types/array';
118120
* var shape = [ 3, 3, 3 ];
119121
* var strides = [ 9, 3, 1 ];
120122
* var offset = 0;
121-
* var mode = [ 'throw' ]
123+
* var mode = [ 'throw' ];
122124
*
123125
* var idx = sub2ind( shape, strides, offset, 1, 2, 2, mode );
124126
* // returns 17

dispatch/docs/types/index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
* limitations under the License.
1717
*/
1818

19+
// FIXME: Re-enable `stdlib/tsdoc-declarations-doctest` lint rule once `@stdlib/ndarray/base/ternary`, `@stdlib/ndarray/base/quaternary`, and `@stdlib/ndarray/base/quinary` exist...
20+
21+
/* eslint-disable stdlib/tsdoc-declarations-doctest */
22+
1923
// TypeScript Version: 4.1
2024

2125
/// <reference types="@stdlib/types"/>

fill-slice/docs/types/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ declare function fillSlice<T extends complexndarray>( x: T, value: number | Comp
163163
* // returns true
164164
*
165165
* var arr = ndarray2array( x );
166-
* // returns [ [ 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 5, 5 ], [ 0, 0, 0, 0, 0, 0, 5, 5 ] ]
166+
* // returns [ [ 0, 0, 0, 0 ], [ 0, 0, 5, 5 ], [ 0, 0, 5, 5 ] ]
167167
*
168168
* @example
169169
* var zeros = require( '@stdlib/ndarray/zeros' );
@@ -186,7 +186,7 @@ declare function fillSlice<T extends complexndarray>( x: T, value: number | Comp
186186
* // returns true
187187
*
188188
* var arr = ndarray2array( x );
189-
* // returns [ [ 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 5, 5 ], [ 0, 0, 0, 0, 0, 0, 5, 5 ] ]
189+
* // returns [ [ 0, 0, 0, 0 ], [ 0, 0, 5, 5 ], [ 0, 0, 5, 5 ] ]
190190
*/
191191
declare function fillSlice<T = unknown, U extends typedndarray<T> = typedndarray<T>>( x: U, value: Element<U>, s: MultiSlice | ArrayLike<SliceArgument>, options?: Options ): U;
192192

@@ -256,7 +256,7 @@ declare function fillSlice<T = unknown, U extends typedndarray<T> = typedndarray
256256
* // returns true
257257
*
258258
* var arr = ndarray2array( x );
259-
* // returns [ [ 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 5, 5 ], [ 0, 0, 0, 0, 0, 0, 5, 5 ] ]
259+
* // returns [ [ 0, 0, 0, 0 ], [ 0, 0, 5, 5 ], [ 0, 0, 5, 5 ] ]
260260
*
261261
* @example
262262
* var zeros = require( '@stdlib/ndarray/zeros' );
@@ -279,7 +279,7 @@ declare function fillSlice<T = unknown, U extends typedndarray<T> = typedndarray
279279
* // returns true
280280
*
281281
* var arr = ndarray2array( x );
282-
* // returns [ [ 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 5, 5 ], [ 0, 0, 0, 0, 0, 0, 5, 5 ] ]
282+
* // returns [ [ 0, 0, 0, 0 ], [ 0, 0, 5, 5 ], [ 0, 0, 5, 5 ] ]
283283
*/
284284
declare function fillSlice<T = unknown, U = unknown>( x: genericndarray<T>, value: U, s: MultiSlice | ArrayLike<SliceArgument>, options?: Options ): genericndarray<T | U>;
285285

filter/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ declare function filter<T = unknown, V = unknown>( x: typedndarray<T>, options:
12331233
* var buffer = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
12341234
* var shape = [ 2, 3 ];
12351235
* var strides = [ 3, 1 ];
1236-
* var offset = 1;
1236+
* var offset = 0;
12371237
*
12381238
* var x = ndarray( 'complex128', buffer, shape, strides, offset, 'row-major' );
12391239
* // returns <ndarray>
@@ -1269,7 +1269,7 @@ declare function filter<T = unknown, V = unknown>( x: typedndarray<T>, options:
12691269
* var buffer = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
12701270
* var shape = [ 2, 3 ];
12711271
* var strides = [ 3, 1 ];
1272-
* var offset = 1;
1272+
* var offset = 0;
12731273
*
12741274
* var x = ndarray( 'complex128', buffer, shape, strides, offset, 'row-major' );
12751275
* // returns <ndarray>

flatten-by/docs/types/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ declare function flattenBy<T extends ComplexLike = ComplexLike, U extends typedn
195195
* var x = ndarray( 'uint8c', buffer, shape, strides, offset, 'row-major' );
196196
* // returns <ndarray>
197197
*
198-
* var y = flattenBy( x, scale );
198+
* var y = flattenBy( x, invert );
199199
* // returns <ndarray>
200200
*
201201
* var arr = ndarray2array( y );
202-
* // returns [ false, true, false, true, false, true ]
202+
* // returns [ 0, 1, 0, 1, 0, 1 ]
203203
*/
204204
declare function flattenBy<T extends typedndarray<boolean> = typedndarray<boolean>, ThisArg = unknown>( x: T, fcn: Callback<boolean, T, boolean, ThisArg>, thisArg?: ThisParameterType<Callback<boolean, T, boolean, ThisArg>> ): T;
205205

@@ -347,11 +347,11 @@ declare function flattenBy<T extends ComplexLike = ComplexLike, U extends typedn
347347
* 'depth': 2
348348
* };
349349
*
350-
* var y = flattenBy( x, opts, scale );
350+
* var y = flattenBy( x, opts, invert );
351351
* // returns <ndarray>
352352
*
353353
* var arr = ndarray2array( y );
354-
* // returns [ false, true, false, true, false, true ]
354+
* // returns [ 0, 1, 0, 1, 0, 1 ]
355355
*/
356356
declare function flattenBy<T extends typedndarray<boolean> = typedndarray<boolean>, ThisArg = unknown>( x: T, options: BaseOptions, fcn: Callback<boolean, T, boolean, ThisArg>, thisArg?: ThisParameterType<Callback<boolean, T, boolean, ThisArg>> ): T;
357357

reject/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ declare function reject<T = unknown, V = unknown>( x: typedndarray<T>, options:
12331233
* var buffer = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
12341234
* var shape = [ 2, 3 ];
12351235
* var strides = [ 3, 1 ];
1236-
* var offset = 1;
1236+
* var offset = 0;
12371237
*
12381238
* var x = ndarray( 'complex128', buffer, shape, strides, offset, 'row-major' );
12391239
* // returns <ndarray>
@@ -1269,7 +1269,7 @@ declare function reject<T = unknown, V = unknown>( x: typedndarray<T>, options:
12691269
* var buffer = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0 ] );
12701270
* var shape = [ 2, 3 ];
12711271
* var strides = [ 3, 1 ];
1272-
* var offset = 1;
1272+
* var offset = 0;
12731273
*
12741274
* var x = ndarray( 'complex128', buffer, shape, strides, offset, 'row-major' );
12751275
* // returns <ndarray>

0 commit comments

Comments
 (0)