mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-29 11:12:23 +08:00
Update sugar.d.ts: fix 'short', 'long', 'full' methods of Date
Those methods support optional locale argument.
This commit is contained in:
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