Skip to content

Commit 138149a

Browse files
committed
Auto-generated commit
1 parent 7e2cdcf commit 138149a

2 files changed

Lines changed: 71 additions & 1 deletion

File tree

CHANGELOG.md

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

7-
## Unreleased (2026-05-11)
7+
## Unreleased (2026-05-12)
88

99
<section class="features">
1010

1111
### Features
1212

13+
- [`53f64c8`](https://github.com/stdlib-js/stdlib/commit/53f64c8d115c1a2edae5bf708b947a5d905e4e5b) - update `array` TypeScript declarations [(#12098)](https://github.com/stdlib-js/stdlib/pull/12098)
1314
- [`513fc61`](https://github.com/stdlib-js/stdlib/commit/513fc61205a9a4748a1e4ecc58c664a11f443ec4) - update `array/base` TypeScript declarations [(#12090)](https://github.com/stdlib-js/stdlib/pull/12090)
1415
- [`91f9e66`](https://github.com/stdlib-js/stdlib/commit/91f9e662810fe97879caefabb9fdd92c3ee7d3ec) - add `toFilled` to namespace
1516
- [`e007cc9`](https://github.com/stdlib-js/stdlib/commit/e007cc9a39f4a47b7de07c3b13b147f9c8a454a4) - add `array/base/to-filled` [(#11954)](https://github.com/stdlib-js/stdlib/pull/11954)
@@ -275,6 +276,7 @@ A total of 38 issues were closed in this release:
275276

276277
<details>
277278

279+
- [`53f64c8`](https://github.com/stdlib-js/stdlib/commit/53f64c8d115c1a2edae5bf708b947a5d905e4e5b) - **feat:** update `array` TypeScript declarations [(#12098)](https://github.com/stdlib-js/stdlib/pull/12098) _(by stdlib-bot, Athan Reines)_
278280
- [`513fc61`](https://github.com/stdlib-js/stdlib/commit/513fc61205a9a4748a1e4ecc58c664a11f443ec4) - **feat:** update `array/base` TypeScript declarations [(#12090)](https://github.com/stdlib-js/stdlib/pull/12090) _(by stdlib-bot)_
279281
- [`c534f97`](https://github.com/stdlib-js/stdlib/commit/c534f971488b2a5ebacca4dccf73a9d9b4e09bc7) - **docs:** update namespace table of contents [(#12092)](https://github.com/stdlib-js/stdlib/pull/12092) _(by stdlib-bot)_
280282
- [`91f9e66`](https://github.com/stdlib-js/stdlib/commit/91f9e662810fe97879caefabb9fdd92c3ee7d3ec) - **feat:** add `toFilled` to namespace _(by Athan Reines)_

docs/types/index.d.ts

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import empty = require( './../../empty' );
4141
import emptyLike = require( './../../empty-like' );
4242
import filled = require( './../../filled' );
4343
import filledBy = require( './../../filled-by' );
44+
import Float16Array = require( './../../float16' );
4445
import Float32Array = require( './../../float32' );
4546
import Float64Array = require( './../../float64' );
4647
import iterator2array = require( './../../from-iterator' );
@@ -636,6 +637,73 @@ interface Namespace {
636637
*/
637638
filledBy: typeof filledBy;
638639

640+
/**
641+
* Half-precision floating-point number array constructor.
642+
*
643+
* @param arg - length, typed array, array-like object, or buffer
644+
* @param byteOffset - byte offset (default: 0)
645+
* @param length - view length
646+
* @throws ArrayBuffer byte length must be a multiple of `2`
647+
* @throws if provided only a single argument, must provide a valid argument
648+
* @throws byte offset must be a nonnegative integer
649+
* @throws byte offset must be a multiple of `2`
650+
* @throws view length must be a positive multiple of `2`
651+
* @throws must provide sufficient memory to accommodate byte offset and view length requirements
652+
* @returns half-precision floating-point number array
653+
*
654+
* @example
655+
* var arr = new ns.Float16Array();
656+
* // returns <Float16Array>
657+
*
658+
* var len = arr.length;
659+
* // returns 0
660+
*
661+
* @example
662+
* var arr = new ns.Float16Array( 2 );
663+
* // returns <Float16Array>
664+
*
665+
* var len = arr.length;
666+
* // returns 2
667+
*
668+
* @example
669+
* var arr = new ns.Float16Array( [ 1.0, 2.0 ] );
670+
* // returns <Float16Array>
671+
*
672+
* var len = arr.length;
673+
* // returns 2
674+
*
675+
* @example
676+
* var ArrayBuffer = require( './../../buffer' );
677+
*
678+
* var buf = new ArrayBuffer( 16 );
679+
* var arr = new ns.Float16Array( buf );
680+
* // returns <Float16Array>
681+
*
682+
* var len = arr.length;
683+
* // returns 8
684+
*
685+
* @example
686+
* var ArrayBuffer = require( './../../buffer' );
687+
*
688+
* var buf = new ArrayBuffer( 16 );
689+
* var arr = new ns.Float16Array( buf, 8 );
690+
* // returns <Float16Array>
691+
*
692+
* var len = arr.length;
693+
* // returns 4
694+
*
695+
* @example
696+
* var ArrayBuffer = require( './../../buffer' );
697+
*
698+
* var buf = new ArrayBuffer( 32 );
699+
* var arr = new ns.Float16Array( buf, 8, 2 );
700+
* // returns <Float16Array>
701+
*
702+
* var len = arr.length;
703+
* // returns 2
704+
*/
705+
Float16Array: typeof Float16Array;
706+
639707
/**
640708
* Typed array constructor which returns a typed array representing an array of single-precision floating-point numbers in the platform byte order.
641709
*/

0 commit comments

Comments
 (0)