mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
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:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user