Update sugar.d.ts

update Array.min, Array.max and Array.most methods.
They could be called without arguments at all (Argument 'map' is optional).
This commit is contained in:
KhodeN
2014-01-27 20:56:50 +11:00
parent 239e30308e
commit dd45f9a194
+3 -3
View File
@@ -2551,7 +2551,7 @@ interface Array<T> {
* return n['a'];
* }); -> {a:3}
**/
max(map: string): T;
max(map?: string): T;
/**
* @see max
@@ -2587,7 +2587,7 @@ interface Array<T> {
* return n['a'];
* }); -> [{a:2}]
**/
min(map: string): T;
min(map?: string): T;
/**
* @see min If true return all min values in the array, default = false.
@@ -2619,7 +2619,7 @@ interface Array<T> {
* return n.age;
* }); -> [{age:12,name:'bob'},{age:12,name:'ted'}]
**/
most(map: string): T[];
most(map?: string): T[];
/**
* @see most