Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Sep 28, 2024
1 parent 097ab00 commit 3bc080f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

<details>

- [`abf0407`](https://github.com/stdlib-js/stdlib/commit/abf040787f6598438b0100a729a8331b7f80f62f) - **chore:** resolve lint errors in TS files _(by Philipp Burckhardt)_
- [`975147f`](https://github.com/stdlib-js/stdlib/commit/975147f3125c786ec1672acb3d2564ca16eaa790) - **docs:** fix TSDoc lint errors _(by Philipp Burckhardt)_
- [`37ca4b7`](https://github.com/stdlib-js/stdlib/commit/37ca4b7ca0d5a2d0553f4d3b0d763d81e38a1bc9) - **feat:** add boolean dtype support to `array/filled-by` [(#2487)](https://github.com/stdlib-js/stdlib/pull/2487) _(by Jaysukh Makvana, Athan Reines)_
- [`75d4f83`](https://github.com/stdlib-js/stdlib/commit/75d4f83cb85610d23a04dc21a03f8075f6d3665f) - **refactor:** update require and include paths _(by Athan Reines)_
Expand Down
24 changes: 12 additions & 12 deletions docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,23 @@ function clbk( i: number ): number {
filledarrayBy( it, 'uint8c', clbk, {} ); // $ExpectType ArrayOrTypedArray

const buf = new ArrayBuffer( 32 );
filledarrayBy( buf, clbk ); // $ExpectType RealOrComplexTypedArray
filledarrayBy( buf, clbk, {} ); // $ExpectType RealOrComplexTypedArray
filledarrayBy( buf, clbk ); // $ExpectType RealOrComplexTypedArray | BooleanArray
filledarrayBy( buf, clbk, {} ); // $ExpectType RealOrComplexTypedArray | BooleanArray

filledarrayBy( buf, 'uint32', clbk ); // $ExpectType RealOrComplexTypedArray
filledarrayBy( buf, 'uint32', clbk, {} ); // $ExpectType RealOrComplexTypedArray
filledarrayBy( buf, 'uint32', clbk ); // $ExpectType RealOrComplexTypedArray | BooleanArray
filledarrayBy( buf, 'uint32', clbk, {} ); // $ExpectType RealOrComplexTypedArray | BooleanArray

filledarrayBy( buf, 8, clbk ); // $ExpectType RealOrComplexTypedArray
filledarrayBy( buf, 8, clbk, {} ); // $ExpectType RealOrComplexTypedArray
filledarrayBy( buf, 8, clbk ); // $ExpectType RealOrComplexTypedArray | BooleanArray
filledarrayBy( buf, 8, clbk, {} ); // $ExpectType RealOrComplexTypedArray | BooleanArray

filledarrayBy( buf, 8, 'uint16', clbk ); // $ExpectType RealOrComplexTypedArray
filledarrayBy( buf, 8, 'uint16', clbk, {} ); // $ExpectType RealOrComplexTypedArray
filledarrayBy( buf, 8, 'uint16', clbk ); // $ExpectType RealOrComplexTypedArray | BooleanArray
filledarrayBy( buf, 8, 'uint16', clbk, {} ); // $ExpectType RealOrComplexTypedArray | BooleanArray

filledarrayBy( buf, 8, 2, clbk ); // $ExpectType RealOrComplexTypedArray
filledarrayBy( buf, 8, 2, clbk, {} ); // $ExpectType RealOrComplexTypedArray
filledarrayBy( buf, 8, 2, clbk ); // $ExpectType RealOrComplexTypedArray | BooleanArray
filledarrayBy( buf, 8, 2, clbk, {} ); // $ExpectType RealOrComplexTypedArray | BooleanArray

filledarrayBy( buf, 8, 2, 'int16', clbk ); // $ExpectType RealOrComplexTypedArray
filledarrayBy( buf, 8, 2, 'int16', clbk, {} ); // $ExpectType RealOrComplexTypedArray
filledarrayBy( buf, 8, 2, 'int16', clbk ); // $ExpectType RealOrComplexTypedArray | BooleanArray
filledarrayBy( buf, 8, 2, 'int16', clbk, {} ); // $ExpectType RealOrComplexTypedArray | BooleanArray
}

// The compiler throws an error if a callback function argument is not a function...
Expand Down

0 comments on commit 3bc080f

Please sign in to comment.