diff --git a/CHANGELOG.md b/CHANGELOG.md index 36d34fcf..a7791a8a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -264,6 +264,7 @@ ##### Bug Fixes +- [`4e6b2eb`](https://github.com/stdlib-js/stdlib/commit/4e6b2eb39e01d193302cd93ebf93dd2f42c71291) - update type for indices - [`c57d1d8`](https://github.com/stdlib-js/stdlib/commit/c57d1d880a32cfaff0c57744c81ef641640cddef) - return subscripts from perspective of ndarray view, not buffer @@ -815,6 +816,7 @@ A total of 4 people contributed to this release. Thank you to the following cont
+- [`4e6b2eb`](https://github.com/stdlib-js/stdlib/commit/4e6b2eb39e01d193302cd93ebf93dd2f42c71291) - **fix:** update type for indices _(by Athan Reines)_ - [`c57d1d8`](https://github.com/stdlib-js/stdlib/commit/c57d1d880a32cfaff0c57744c81ef641640cddef) - **fix:** return subscripts from perspective of ndarray view, not buffer _(by Athan Reines)_ - [`2777e4b`](https://github.com/stdlib-js/stdlib/commit/2777e4be161869d09406e3b17947d24c64b47af2) - **bench:** resolve lint errors in benchmarks _(by Athan Reines)_ - [`6e4b9eb`](https://github.com/stdlib-js/stdlib/commit/6e4b9ebc31d9629446019e37e31bfe9b180b675c) - **feat:** update namespace TypeScript declarations [(#2681)](https://github.com/stdlib-js/stdlib/pull/2681) _(by stdlib-bot, Philipp Burckhardt)_ diff --git a/base/for-each/docs/types/index.d.ts b/base/for-each/docs/types/index.d.ts index c2e072e3..014197b8 100644 --- a/base/for-each/docs/types/index.d.ts +++ b/base/for-each/docs/types/index.d.ts @@ -42,7 +42,7 @@ type Unary = ( this: U, value: T ) => void; * @param value - current array element * @param indices - current array element indices */ -type Binary = ( this: U, value: T, indices: number ) => void; +type Binary = ( this: U, value: T, indices: Array ) => void; /** * Callback invoked for each ndarray element. @@ -51,7 +51,7 @@ type Binary = ( this: U, value: T, indices: number ) => void; * @param indices - current array element indices * @param arr - input array */ -type Ternary = ( this: U, value: T, indices: number, arr: typedndarray ) => void; +type Ternary = ( this: U, value: T, indices: Array, arr: typedndarray ) => void; /** * Callback invoked for each ndarray element.