Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use typesVersions to check existence of Intl.LocalesArgument type
- Loading branch information
1 parent
6e689dc
commit 6516a2e
Showing
3 changed files
with
35 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export * from './index'; | ||
|
||
declare global { | ||
namespace Intl { | ||
/** | ||
* The locale or locales to use | ||
* | ||
* See [MDN - Intl - locales | ||
* argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument) | ||
*/ | ||
type LocalesArgument = | ||
| UnicodeBCP47LocaleIdentifier | ||
| globalThis.Intl.Locale | ||
| readonly (UnicodeBCP47LocaleIdentifier | globalThis.Intl.Locale)[] | ||
| undefined; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters