Skip to content

Commit 2008da4

Browse files
committed
refactor: improve type specificity for index arguments
1 parent 25e26f4 commit 2008da4

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/array/base/map2d/docs/types

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/array/base/map2d/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ type Unary<T, U, V> = ( this: V, value: T ) => U;
4545
* @param indices - current array element indices
4646
* @returns result
4747
*/
48-
type Binary<T, U, V> = ( this: V, value: T, indices: Array<number> ) => U;
48+
type Binary<T, U, V> = ( this: V, value: T, indices: [ number, number ] ) => U;
4949

5050
/**
5151
* Callback invoked for each array element.
@@ -54,7 +54,7 @@ type Binary<T, U, V> = ( this: V, value: T, indices: Array<number> ) => U;
5454
* @param indices - current array element indices
5555
* @returns result
5656
*/
57-
type Ternary<T, U, V> = ( this: V, value: T, indices: Array<number>, array: Array2D<T> ) => U;
57+
type Ternary<T, U, V> = ( this: V, value: T, indices: [ number, number ], array: Array2D<T> ) => U;
5858

5959
/**
6060
* Callback invoked for each array element.

0 commit comments

Comments
 (0)