Adds [unit] and [unitDisplay] to NumberFormatOptions (#38013)
* Adds [unit] and [unitDisplay] to NumberFormatOptions * Adds [unit] and [unitDisplay] to ResolvedNumberFormatOptions * Updates tests for NumberFormatOptions and ResolvedNumberFormatOptions * move unit[Display] from es5 to es2020 Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
This commit is contained in:
parent
8136047a3d
commit
37831de587
4
src/lib/es2020.intl.d.ts
vendored
4
src/lib/es2020.intl.d.ts
vendored
|
@ -264,9 +264,13 @@ declare namespace Intl {
|
|||
|
||||
interface NumberFormatOptions {
|
||||
notation?: string;
|
||||
unit?: string;
|
||||
unitDisplay?: string;
|
||||
}
|
||||
|
||||
interface ResolvedNumberFormatOptions {
|
||||
notation?: string;
|
||||
unit?: string;
|
||||
unitDisplay?: string;
|
||||
}
|
||||
}
|
||||
|
|
4
tests/lib/lib.d.ts
vendored
4
tests/lib/lib.d.ts
vendored
|
@ -3892,6 +3892,8 @@ declare module Intl {
|
|||
style?: string;
|
||||
currency?: string;
|
||||
currencyDisplay?: string;
|
||||
unit?: string;
|
||||
unitDisplay?: string;
|
||||
useGrouping?: boolean;
|
||||
minimumIntegerDigits?: number;
|
||||
minimumFractionDigits?: number;
|
||||
|
@ -3907,6 +3909,8 @@ declare module Intl {
|
|||
style: string;
|
||||
currency?: string;
|
||||
currencyDisplay?: string;
|
||||
unit?: string;
|
||||
unitDisplay?: string;
|
||||
minimumIntegerDigits: number;
|
||||
minimumFractionDigits: number;
|
||||
maximumFractionDigits: number;
|
||||
|
|
Loading…
Reference in a new issue