Skip to content

Commit 4e6b2eb

Browse files
committed
fix: update type for indices
1 parent c57d1d8 commit 4e6b2eb

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/ndarray/base/for-each/docs/types

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/ndarray/base/for-each/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type Unary<T, U> = ( this: U, value: T ) => void;
4242
* @param value - current array element
4343
* @param indices - current array element indices
4444
*/
45-
type Binary<T, U> = ( this: U, value: T, indices: number ) => void;
45+
type Binary<T, U> = ( this: U, value: T, indices: Array<number> ) => void;
4646

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

5656
/**
5757
* Callback invoked for each ndarray element.

0 commit comments

Comments
 (0)