/
githubmirror
/
TypeScript
Обзор
Документация
Войти
/
githubmirror
/
TypeScript
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/lib/es2020.number.d.ts
10 строк
744 B
jihndai
Add `Intl.Locale` parameter type to `toLocale[X]String` signatures. (#47811)
01 мар 2022, 01:10
Не верифицирован
01 мар 2022, 01:10
1abc47b
Код
Авторство
О чём код?
/// <reference lib="es2020.intl" /> interface Number { /** * Converts a number to a string by using the current or specified locale. * @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. * @param options An object that contains one or more properties that specify comparison options. */ toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string; }