Skip to content

Commit 03da2ce

Browse files
committed
1 parent c209747 commit 03da2ce

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/lib/intl.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,17 +170,32 @@ interface Date {
170170
*/
171171
toLocaleDateString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
172172

173+
/**
174+
* Converts a time to a string by using the current or specified locale.
175+
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
176+
* @param options An object that contains one or more properties that specify comparison options.
177+
*/
178+
toLocaleTimeString(locale?: string[], options?: Intl.DateTimeFormatOptions): string;
179+
173180
/**
174181
* Converts a date and time to a string by using the current or specified locale.
175182
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
176183
* @param options An object that contains one or more properties that specify comparison options.
177184
*/
178185
toLocaleString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
186+
179187
/**
180188
* Converts a date to a string by using the current or specified locale.
181189
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
182190
* @param options An object that contains one or more properties that specify comparison options.
183191
*/
184192
toLocaleDateString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
193+
194+
/**
195+
* Converts a time to a string by using the current or specified locale.
196+
* @param locale Locale tag. If you omit this parameter, the default locale of the JavaScript runtime is used.
197+
* @param options An object that contains one or more properties that specify comparison options.
198+
*/
199+
toLocaleTimeString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
185200
}
186201

0 commit comments

Comments
 (0)