mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #3020 from bluong/minMax
Adding index arg to accessor for min/max. Letting args be optional
This commit is contained in:
Vendored
+2
-2
@@ -89,7 +89,7 @@ declare module D3 {
|
||||
* @param arr Array to search
|
||||
* @param map Accsessor function
|
||||
*/
|
||||
min<T, U>(arr: T[], map: (v: T) => U): U;
|
||||
min<T, U>(arr: T[], map: (v?: T, i?: number) => U): U;
|
||||
/**
|
||||
* Find the minimum value in an array
|
||||
*
|
||||
@@ -102,7 +102,7 @@ declare module D3 {
|
||||
* @param arr Array to search
|
||||
* @param map Accsessor function
|
||||
*/
|
||||
max<T, U>(arr: T[], map: (v: T) => U): U;
|
||||
max<T, U>(arr: T[], map: (v?: T, i?: number) => U): U;
|
||||
/**
|
||||
* Find the maximum value in an array
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user