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 {
|
interface NumberFormatOptions {
|
||||||
|
compactDisplay?: string;
|
||||||
notation?: string;
|
notation?: string;
|
||||||
|
signDisplay?: string;
|
||||||
unit?: string;
|
unit?: string;
|
||||||
unitDisplay?: string;
|
unitDisplay?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ResolvedNumberFormatOptions {
|
interface ResolvedNumberFormatOptions {
|
||||||
|
compactDisplay?: string;
|
||||||
notation?: string;
|
notation?: string;
|
||||||
|
signDisplay?: string;
|
||||||
unit?: string;
|
unit?: string;
|
||||||
unitDisplay?: 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 {
|
interface NumberFormatOptions {
|
||||||
localeMatcher?: string;
|
localeMatcher?: string;
|
||||||
style?: string;
|
style?: string;
|
||||||
|
compactDisplay?: string;
|
||||||
currency?: string;
|
currency?: string;
|
||||||
currencyDisplay?: string;
|
currencyDisplay?: string;
|
||||||
unit?: string;
|
unit?: string;
|
||||||
|
@ -3901,12 +3902,14 @@ declare module Intl {
|
||||||
minimumSignificantDigits?: number;
|
minimumSignificantDigits?: number;
|
||||||
maximumSignificantDigits?: number;
|
maximumSignificantDigits?: number;
|
||||||
notation?: string;
|
notation?: string;
|
||||||
|
signDisplay?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ResolvedNumberFormatOptions {
|
interface ResolvedNumberFormatOptions {
|
||||||
locale: string;
|
locale: string;
|
||||||
numberingSystem: string;
|
numberingSystem: string;
|
||||||
style: string;
|
style: string;
|
||||||
|
compactDisplay?: string;
|
||||||
currency?: string;
|
currency?: string;
|
||||||
currencyDisplay?: string;
|
currencyDisplay?: string;
|
||||||
unit?: string;
|
unit?: string;
|
||||||
|
@ -3918,6 +3921,7 @@ declare module Intl {
|
||||||
maximumSignificantDigits?: number;
|
maximumSignificantDigits?: number;
|
||||||
useGrouping: boolean;
|
useGrouping: boolean;
|
||||||
notation?: string;
|
notation?: string;
|
||||||
|
signDisplay?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface NumberFormat {
|
interface NumberFormat {
|
||||||
|
|
Loading…
Reference in a new issue