Merge pull request #37721 from benmccann/NumberFormatOptions-notation

Add support for NumberFormatOptions notation
This commit is contained in:
Nathan Shively-Sanders 2020-06-16 11:19:25 -07:00 committed by GitHub
commit e97003f263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -261,4 +261,12 @@ declare namespace Intl {
options?: RelativeTimeFormatOptions,
): BCP47LanguageTag[];
};
interface NumberFormatOptions {
notation?: string;
}
interface ResolvedNumberFormatOptions {
notation?: string;
}
}

2
tests/lib/lib.d.ts vendored
View File

@ -3898,6 +3898,7 @@ declare module Intl {
maximumFractionDigits?: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
notation?: string;
}
interface ResolvedNumberFormatOptions {
@ -3912,6 +3913,7 @@ declare module Intl {
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
useGrouping: boolean;
notation?: string;
}
interface NumberFormat {