Skip to content

Commit

Permalink
fix: update type for indices
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Jul 31, 2024
1 parent c57d1d8 commit 4e6b2eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type Unary<T, U> = ( this: U, value: T ) => void;
* @param value - current array element
* @param indices - current array element indices
*/
type Binary<T, U> = ( this: U, value: T, indices: number ) => void;
type Binary<T, U> = ( this: U, value: T, indices: Array<number> ) => void;

/**
* Callback invoked for each ndarray element.
Expand All @@ -51,7 +51,7 @@ type Binary<T, U> = ( this: U, value: T, indices: number ) => void;
* @param indices - current array element indices
* @param arr - input array
*/
type Ternary<T, U> = ( this: U, value: T, indices: number, arr: typedndarray<T> ) => void;
type Ternary<T, U> = ( this: U, value: T, indices: Array<number>, arr: typedndarray<T> ) => void;

/**
* Callback invoked for each ndarray element.
Expand Down

1 comment on commit 4e6b2eb

@stdlib-bot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage Report

Package Statements Branches Functions Lines
ndarray/base/for-each $\color{red}3993/8525$
$\color{green}+46.84\%$
$\color{green}44/44$
$\color{green}+100.00\%$
$\color{red}0/43$
$\color{green}+0.00\%$
$\color{red}3993/8525$
$\color{green}+46.84\%$

The above coverage report was generated for the changes in this push.

Please sign in to comment.