Add missing each, and correct type of Date.now() (#11670)

This commit is contained in:
Eric Wieser
2016-10-03 14:27:29 +01:00
committed by Masahiro Wakame
parent 56946455a5
commit 1965fee8a7

7
sugar/sugar.d.ts vendored
View File

@@ -3076,6 +3076,11 @@ interface ObjectConstructor {
**/
map<T, U>(obj: T, map: (key: string, value: any) => any): U;
/**
* @see map
**/
each(obj: any, map: (key: string, value: any) => void): void;
/**
* @see map
**/
@@ -4174,7 +4179,7 @@ interface DateConstructor {
* @example
* Date.now() -> ex. 1311938296231
**/
now(): string;
now(): number;
/**
* Alternate form of %Date.create% with any ambiguity assumed to be the past.