mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +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:
commit
e87d03296b
1 file changed
+2
-2
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