Skip to content

Commit f276ea0

Browse files
committed
Auto-generated commit
1 parent 632d787 commit f276ea0

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
### Features
1212

13+
- [`4a317ad`](https://github.com/stdlib-js/stdlib/commit/4a317ad7b24684e64cb2dfce1c204902ac62349d) - update `array` TypeScript declarations [(#12655)](https://github.com/stdlib-js/stdlib/pull/12655)
1314
- [`c35efe7`](https://github.com/stdlib-js/stdlib/commit/c35efe7f66c7e7d41c60cb30e1d72f4590169d8a) - add `trues` to namespace
1415
- [`f8df9c7`](https://github.com/stdlib-js/stdlib/commit/f8df9c7df3bad72abb6a5b53ad8e0e217df4fcbd) - add `array/trues`
1516
- [`75279e1`](https://github.com/stdlib-js/stdlib/commit/75279e1a91ce93a79a05d38b48d99001b34b5326) - add `falses` to namespace
@@ -25,6 +26,7 @@
2526

2627
<details>
2728

29+
- [`4a317ad`](https://github.com/stdlib-js/stdlib/commit/4a317ad7b24684e64cb2dfce1c204902ac62349d) - **feat:** update `array` TypeScript declarations [(#12655)](https://github.com/stdlib-js/stdlib/pull/12655) _(by stdlib-bot)_
2830
- [`8d0b8f2`](https://github.com/stdlib-js/stdlib/commit/8d0b8f2b73e653844c958e5a76411a6bbb6760f3) - **docs:** update namespace table of contents [(#12663)](https://github.com/stdlib-js/stdlib/pull/12663) _(by stdlib-bot)_
2931
- [`d935b4a`](https://github.com/stdlib-js/stdlib/commit/d935b4a88d82fc3a68362bceeea5381625c28695) - **chore:** follow-up fixes for previous commits [(#12641)](https://github.com/stdlib-js/stdlib/pull/12641) _(by Philipp Burckhardt, Athan Reines)_
3032
- [`517d71c`](https://github.com/stdlib-js/stdlib/commit/517d71c36df0c363bab9cfa9d6122fd538882dce) - **docs:** fix default value _(by Athan Reines)_

docs/types/index.d.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import dtype = require( './../../dtype' );
3939
import dtypes = require( './../../dtypes' );
4040
import empty = require( './../../empty' );
4141
import emptyLike = require( './../../empty-like' );
42+
import falses = require( './../../falses' );
4243
import filled = require( './../../filled' );
4344
import filledBy = require( './../../filled-by' );
4445
import Float16Array = require( './../../float16' );
@@ -89,6 +90,7 @@ import sparsearray2iteratorRight = require( './../../to-sparse-iterator-right' )
8990
import stridedarray2iterator = require( './../../to-strided-iterator' );
9091
import arrayview2iterator = require( './../../to-view-iterator' );
9192
import arrayview2iteratorRight = require( './../../to-view-iterator-right' );
93+
import trues = require( './../../trues' );
9294
import typedarray = require( './../../typed' );
9395
import complexarray = require( './../../typed-complex' );
9496
import complexarrayCtors = require( './../../typed-complex-ctors' );
@@ -586,6 +588,28 @@ interface Namespace {
586588
*/
587589
emptyLike: typeof emptyLike;
588590

591+
/**
592+
* Creates an array filled with false values and having a specified length.
593+
*
594+
* The function recognizes the following data types:
595+
*
596+
* - `bool`: boolean values
597+
* - `generic`: generic JavaScript values
598+
*
599+
* @param length - array length
600+
* @param dtype - data type (default: 'bool')
601+
* @returns filled array
602+
*
603+
* @example
604+
* var arr = ns.falses( 2 );
605+
* // returns <BooleanArray>[ false, false ]
606+
*
607+
* @example
608+
* var arr = ns.falses( 2, 'generic' );
609+
* // returns [ false, false ]
610+
*/
611+
falses: typeof falses;
612+
589613
/**
590614
* Returns a filled typed array view of an `ArrayBuffer`.
591615
*
@@ -1692,6 +1716,28 @@ interface Namespace {
16921716
*/
16931717
arrayview2iteratorRight: typeof arrayview2iteratorRight;
16941718

1719+
/**
1720+
* Creates an array filled with true values and having a specified length.
1721+
*
1722+
* The function recognizes the following data types:
1723+
*
1724+
* - `bool`: boolean values
1725+
* - `generic`: generic JavaScript values
1726+
*
1727+
* @param length - array length
1728+
* @param dtype - data type (default: 'bool')
1729+
* @returns filled array
1730+
*
1731+
* @example
1732+
* var arr = ns.trues( 2 );
1733+
* // returns <BooleanArray>[ true, true ]
1734+
*
1735+
* @example
1736+
* var arr = ns.trues( 2, 'generic' );
1737+
* // returns [ true, true ]
1738+
*/
1739+
trues: typeof trues;
1740+
16951741
/**
16961742
* Creates a typed array.
16971743
*

0 commit comments

Comments
 (0)