mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-15 12:42:26 +08:00
Making accessor have optional arguments and include index
This commit is contained in:
1 parent
7c32dfc7b7
commit
d50b10def2
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