mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-14 12:30:47 +08:00
Update sugar.d.ts: fix 'short', 'long', 'full' methods of Date
Those methods support optional locale argument.
This commit is contained in:
1 parent
1bb113b03e
commit
e7c8563bed
1 file changed
+3
-3
Vendored
+3
-3
@@ -4392,9 +4392,9 @@ interface Date {
|
||||
* }); -> ex. 1 day ago
|
||||
**/
|
||||
format(format: string, locale?: string): string;
|
||||
short(): string;
|
||||
long(): string;
|
||||
full(): string;
|
||||
short(locale?: string): string;
|
||||
long(locale?: string): string;
|
||||
full(locale?: string): string;
|
||||
|
||||
/**
|
||||
* Returns a string representation of the offset from UTC time. If [iso]
|
||||
|
||||
Reference in new issue
Block a user