Add compactDisplay and signDisplay to NumberFormatOptions (#40039)
This commit is contained in:
parent
8429ddd4f0
commit
585603e934
4
src/lib/es2020.intl.d.ts
vendored
4
src/lib/es2020.intl.d.ts
vendored
|
@ -263,13 +263,17 @@ declare namespace Intl {
|
|||
};
|
||||
|
||||
interface NumberFormatOptions {
|
||||
compactDisplay?: string;
|
||||
notation?: string;
|
||||
signDisplay?: string;
|
||||
unit?: string;
|
||||
unitDisplay?: string;
|
||||
}
|
||||
|
||||
interface ResolvedNumberFormatOptions {
|
||||
compactDisplay?: string;
|
||||
notation?: string;
|
||||
signDisplay?: string;
|
||||
unit?: string;
|
||||
unitDisplay?: string;
|
||||
}
|
||||
|
|
4
tests/lib/lib.d.ts
vendored
4
tests/lib/lib.d.ts
vendored
|
@ -3890,6 +3890,7 @@ declare module Intl {
|
|||
interface NumberFormatOptions {
|
||||
localeMatcher?: string;
|
||||
style?: string;
|
||||
compactDisplay?: string;
|
||||
currency?: string;
|
||||
currencyDisplay?: string;
|
||||
unit?: string;
|
||||
|
@ -3901,12 +3902,14 @@ declare module Intl {
|
|||
minimumSignificantDigits?: number;
|
||||
maximumSignificantDigits?: number;
|
||||
notation?: string;
|
||||
signDisplay?: string;
|
||||
}
|
||||
|
||||
interface ResolvedNumberFormatOptions {
|
||||
locale: string;
|
||||
numberingSystem: string;
|
||||
style: string;
|
||||
compactDisplay?: string;
|
||||
currency?: string;
|
||||
currencyDisplay?: string;
|
||||
unit?: string;
|
||||
|
@ -3918,6 +3921,7 @@ declare module Intl {
|
|||
maximumSignificantDigits?: number;
|
||||
useGrouping: boolean;
|
||||
notation?: string;
|
||||
signDisplay?: string;
|
||||
}
|
||||
|
||||
interface NumberFormat {
|
||||
|
|
Loading…
Reference in a new issue