fix(46845): Add missing "locale" field to Intl.DisplayNamesOptions (#46849)

Closes https://github.com/microsoft/TypeScript/issues/46845
This commit is contained in:
gfyoung 2022-01-03 12:10:20 -08:00 committed by GitHub
parent db9e007900
commit 9a75d2acc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,6 +277,7 @@ declare namespace Intl {
};
interface DisplayNamesOptions {
locale: UnicodeBCP47LocaleIdentifier;
localeMatcher: RelativeTimeFormatLocaleMatcher;
style: RelativeTimeFormatStyle;
type: "language" | "region" | "script" | "currency";