Skip to content

Commit d6085dc

Browse files
committed
Auto-generated commit
1 parent e2d3f8b commit d6085dc

File tree

9 files changed

+41
-36
lines changed

9 files changed

+41
-36
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-11-13)
7+
## Unreleased (2025-11-25)
88

99
<section class="features">
1010

@@ -256,6 +256,10 @@ A total of 33 issues were closed in this release:
256256

257257
<details>
258258

259+
- [`c520b5a`](https://github.com/stdlib-js/stdlib/commit/c520b5a0cae0c85e946f8a646e7cc8c01b3b5673) - **docs:** address TSDoc lint errors and add doctest aliases _(by Philipp Burckhardt)_
260+
- [`3f7b1ed`](https://github.com/stdlib-js/stdlib/commit/3f7b1ed405cdb77a3357d424f462e8d3b2276df5) - **docs:** fix code in TSDoc examples _(by Philipp Burckhardt)_
261+
- [`7f55434`](https://github.com/stdlib-js/stdlib/commit/7f554349e50fc601e7ab4206ba1da0eceae93518) - **docs:** fix TSDoc comments example code and return annotation values _(by Philipp Burckhardt)_
262+
- [`47088cc`](https://github.com/stdlib-js/stdlib/commit/47088cc299d84289a904dd2e7d2cdf0aee9057aa) - **docs:** fix TSDoc comments example code and return annotation values _(by Philipp Burckhardt)_
259263
- [`ff50310`](https://github.com/stdlib-js/stdlib/commit/ff5031015827c1783e8b7b62713361ca6c7bc655) - **chore:** fix lint errors _(by Philipp Burckhardt)_
260264
- [`e4d5f21`](https://github.com/stdlib-js/stdlib/commit/e4d5f21b9a7111bb6255874d2f7a2d5a0c08e59e) - **docs:** fix lint errors in TS declaration files _(by Philipp Burckhardt)_
261265
- [`5f5bb2d`](https://github.com/stdlib-js/stdlib/commit/5f5bb2d4277a24000b57fb07bc28d821500cd7e8) - **docs:** update namespace table of contents [(#8425)](https://github.com/stdlib-js/stdlib/pull/8425) _(by stdlib-bot, Athan Reines)_

base/cuany-by-right/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ interface CuanyByRight {
157157
* var y = [ false, null, false, null, false, null, false, null, false, null ];
158158
*
159159
* var arr = cuanyByRight.assign( x, y, 2, 0, isPositive );
160-
* // returns [ false, null, false, null, false, null, true, null, true, null ]
160+
* // returns [ false, null, ..., true, null ]
161161
*/
162162
assign<T = unknown, U = unknown, V = unknown>( x: Collection<T> | AccessorArrayLike<T>, out: Collection<U> | AccessorArrayLike<U>, stride: number, offset: number, predicate: Predicate<T, V>, thisArg?: ThisParameterType<Predicate<T, V>> ): Collection<U | boolean> | AccessorArrayLike<U | boolean>;
163163
}
@@ -187,7 +187,7 @@ interface CuanyByRight {
187187
* var y = [ false, null, false, null, false, null, false, null, false, null ];
188188
*
189189
* var arr = cuanyByRight.assign( x, y, 2, 0, isPositive );
190-
* // returns [ false, null, false, null, false, null, true, null, true, null ]
190+
* // returns [ false, null, ..., true, null ]
191191
*/
192192
declare var cuanyByRight: CuanyByRight;
193193

base/resolve-setter/docs/types/index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,16 +201,16 @@ declare function resolveSetter( x: Float32Array ): SetFloat32;
201201
* var resolveGetter = require( '@stdlib/array/base/resolve-getter' );
202202
* var Complex128Array = require( '@stdlib/array/complex128' );
203203
* var Complex128 = require( '@stdlib/complex/float64/ctor' );
204-
* var real = require( '@stdlib/array/real' );
205-
* var imag = require( '@stdlib/array/imag' );
204+
* var real = require( '@stdlib/complex/float64/real' );
205+
* var imag = require( '@stdlib/complex/float64/imag' );
206206
*
207207
* var arr = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0 ] );
208208
*
209209
* var set = resolveSetter( arr );
210210
* set( arr, 1, new Complex128( 10.0, 11.0 ) );
211211
*
212212
* var get = resolveGetter( arr );
213-
* var v = get( arr, 2 );
213+
* var v = get( arr, 1 );
214214
* // returns <Complex128>
215215
*
216216
* var re = real( v );
@@ -231,16 +231,16 @@ declare function resolveSetter( x: Complex128Array ): SetComplex128;
231231
* var resolveGetter = require( '@stdlib/array/base/resolve-getter' );
232232
* var Complex64Array = require( '@stdlib/array/complex64' );
233233
* var Complex64 = require( '@stdlib/complex/float32/ctor' );
234-
* var realf = require( '@stdlib/array/realf' );
235-
* var imagf = require( '@stdlib/array/imagf' );
234+
* var realf = require( '@stdlib/complex/float32/real' );
235+
* var imagf = require( '@stdlib/complex/float32/imag' );
236236
*
237237
* var arr = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
238238
*
239239
* var set = resolveSetter( arr );
240240
* set( arr, 1, new Complex64( 10.0, 11.0 ) );
241241
*
242242
* var get = resolveGetter( arr );
243-
* var v = get( arr, 2 );
243+
* var v = get( arr, 1 );
244244
* // returns <Complex64>
245245
*
246246
* var re = realf( v );

base/unary4d-by/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ type Unary<U, V> = ( value: U ) => V;
104104
* var x = ones4d( shape );
105105
* var y = zeros4d( shape );
106106
*
107-
* unary4dBy( [ x, y ], shape, scale );
107+
* unary4dBy( [ x, y ], shape, scale, accessor );
108108
*
109109
* console.log( y );
110110
* // => [ [ [ [ -10.0, -10.0 ], [ -10.0, -10.0 ] ] ] ]

complex64/docs/types/index.d.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ declare class Complex64Array implements Complex64ArrayInterface {
357357
* arr.set( [ 1.0, -1.0 ], 0 );
358358
* arr.set( [ 9.0, -9.0 ], 9 );
359359
*
360-
* z = arr.get( -1 )
361-
* // return <Complex64>
360+
* z = arr.at( -1 );
361+
* // returns <Complex64>
362362
*
363363
* z = arr.at( 100 );
364364
* // returns undefined
@@ -732,9 +732,6 @@ declare class Complex64Array implements Complex64ArrayInterface {
732732
* arr.set( [ 3.0, 3.0 ], 2 );
733733
*
734734
* arr.forEach( log );
735-
* // => 0: 1 + 1i
736-
* // => 1: 2 + 2i
737-
* // => 2: 3 + 3i
738735
*/
739736
forEach<U = unknown>( fcn: Callback<U>, thisArg?: ThisParameterType<Callback<U>> ): void;
740737

@@ -801,13 +798,13 @@ declare class Complex64Array implements Complex64ArrayInterface {
801798
* arr.set( [ 2.0, 2.0 ], 3 );
802799
* arr.set( [ 5.0, 5.0 ], 4 );
803800
*
804-
* var idx = arr.indexOf( new Complex64( [ 2.0, 2.0 ] ) );
801+
* var idx = arr.indexOf( new Complex64( 2.0, 2.0 ) );
805802
* // returns 1
806803
*
807-
* idx = arr.indexOf( new Complex64( [ 2.0, 2.0 ] ), 2 );
804+
* idx = arr.indexOf( new Complex64( 2.0, 2.0 ), 2 );
808805
* // returns 3
809806
*
810-
* idx = arr.indexOf( new Complex64( [ 2.0, 2.0 ] ), -3 );
807+
* idx = arr.indexOf( new Complex64( 2.0, 2.0 ), -3 );
811808
* // returns 3
812809
*/
813810
indexOf( searchElement: ComplexLike, fromIndex?: number ): number;
@@ -1843,3 +1840,5 @@ declare var ctor: Complex64ArrayConstructor;
18431840
// EXPORTS //
18441841

18451842
export = ctor;
1843+
1844+
// eslint-doctest-alias: Complex64Array

docs/types/index.d.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -357,21 +357,21 @@ interface Namespace {
357357
*
358358
* @example
359359
* var arr = new ns.Complex128Array();
360-
* // returns <ns.Complex128Array>
360+
* // returns <Complex128Array>
361361
*
362362
* var len = arr.length;
363363
* // returns 0
364364
*
365365
* @example
366366
* var arr = new ns.Complex128Array( 2 );
367-
* // returns <ns.Complex128Array>
367+
* // returns <Complex128Array>
368368
*
369369
* var len = arr.length;
370370
* // returns 2
371371
*
372372
* @example
373373
* var arr = new ns.Complex128Array( [ 1.0, -1.0 ] );
374-
* // returns <ns.Complex128Array>
374+
* // returns <Complex128Array>
375375
*
376376
* var len = arr.length;
377377
* // returns 1
@@ -381,27 +381,27 @@ interface Namespace {
381381
*
382382
* var buf = new ArrayBuffer( 16 );
383383
* var arr = new ns.Complex128Array( buf );
384-
* // returns <ns.Complex128Array>
384+
* // returns <Complex128Array>
385385
*
386386
* var len = arr.length;
387-
* // returns 2
387+
* // returns 1
388388
*
389389
* @example
390390
* var ArrayBuffer = require( './../../buffer' );
391391
*
392-
* var buf = new ArrayBuffer( 16 );
393-
* var arr = new ns.Complex128Array( buf, 8 );
394-
* // returns <ns.Complex128Array>
392+
* var buf = new ArrayBuffer( 32 );
393+
* var arr = new ns.Complex128Array( buf, 16 );
394+
* // returns <Complex128Array>
395395
*
396396
* var len = arr.length;
397397
* // returns 1
398398
*
399399
* @example
400400
* var ArrayBuffer = require( './../../buffer' );
401401
*
402-
* var buf = new ArrayBuffer( 32 );
403-
* var arr = new ns.Complex128Array( buf, 8, 2 );
404-
* // returns <ns.Complex128Array>
402+
* var buf = new ArrayBuffer( 48 );
403+
* var arr = new ns.Complex128Array( buf, 16, 2 );
404+
* // returns <Complex128Array>
405405
*
406406
* var len = arr.length;
407407
* // returns 2
@@ -668,7 +668,7 @@ interface Namespace {
668668
*
669669
* var out = new Float64Array( 10 );
670670
* var arr = ns.iterator2array( iter, out, scale );
671-
* // returns <Array>
671+
* // returns <Float64Array>
672672
*/
673673
iterator2array: typeof iterator2array;
674674

@@ -1287,19 +1287,19 @@ interface Namespace {
12871287
* @example
12881288
* var arr = [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8, 9 ] ];
12891289
*
1290-
* var ns.shape = ns.shape( arr );
1290+
* var sh = ns.shape( arr );
12911291
* // returns [ 3, 3 ]
12921292
*
12931293
* @example
12941294
* var arr = [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8 ] ];
12951295
*
1296-
* var ns.shape = ns.shape( arr );
1296+
* var sh = ns.shape( arr );
12971297
* // returns [ 3 ]
12981298
*
12991299
* @example
13001300
* var arr = [ [ 1, 2, 3 ], [ 4, 5, 6 ], null ];
13011301
*
1302-
* var ns.shape = ns.shape( arr );
1302+
* var sh = ns.shape( arr );
13031303
* // returns [ 3 ]
13041304
*/
13051305
shape: typeof shape;

from-iterator/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ declare function iterator2array<T = unknown, U = unknown, W = unknown>( iterator
118118
*
119119
* var out = new Float64Array( 10 );
120120
* var arr = iterator2array( iter, out );
121-
* // returns <Array>
121+
* // returns <Float64Array>
122122
*/
123123
declare function iterator2array<T = unknown, U = unknown>( iterator: Iterator<T>, out: Collection<U> ): Collection<T | U>;
124124

@@ -145,7 +145,7 @@ declare function iterator2array<T = unknown, U = unknown>( iterator: Iterator<T>
145145
*
146146
* var out = new Float64Array( 10 );
147147
* var arr = iterator2array( iter, out, scale );
148-
* // returns <Array>
148+
* // returns <Float64Array>
149149
*/
150150
declare function iterator2array<T = unknown, U = unknown, V = unknown, W = unknown>( iterator: Iterator<T>, out: Collection<V>, mapFcn: MapFunction<T, U, W>, thisArg?: ThisParameterType<MapFunction<T, U, W>> ): Collection<U | V>;
151151

from-scalar/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ declare function scalar2array( value: number, dtype: 'uint8' ): Uint8Array;
191191
*
192192
* @example
193193
* var x = scalar2array( 1, 'uint8c' );
194-
* // returns <Uint8ClampedArray>[]
194+
* // returns <Uint8ClampedArray>[ 1 ]
195195
*/
196196
declare function scalar2array( value: number, dtype: 'uint8c' ): Uint8ClampedArray;
197197

index/docs/types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,3 +323,5 @@ declare var ctor: Constructor;
323323
// EXPORTS //
324324

325325
export = ctor;
326+
327+
// eslint-doctest-alias: ArrayIndex

0 commit comments

Comments
 (0)