mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
Add missing each, and correct type of Date.now() (#11670)
This commit is contained in:
committed by
Masahiro Wakame
parent
56946455a5
commit
1965fee8a7
7
sugar/sugar.d.ts
vendored
7
sugar/sugar.d.ts
vendored
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user