Skip to content

Commit 9eab5a0

Browse files
committed
update locales arg for other related Date functions
1 parent cae5be7 commit 9eab5a0

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/lib/es2020.date.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,18 @@ interface Date {
77
* @param options An object that contains one or more properties that specify comparison options.
88
*/
99
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
10+
11+
/**
12+
* Converts a date to a string by using the current or specified locale.
13+
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
14+
* @param options An object that contains one or more properties that specify comparison options.
15+
*/
16+
toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
17+
18+
/**
19+
* Converts a time to a string by using the current or specified locale.
20+
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
21+
* @param options An object that contains one or more properties that specify comparison options.
22+
*/
23+
toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
1024
}

0 commit comments

Comments
 (0)