mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Merge pull request #37721 from benmccann/NumberFormatOptions-notation
Add support for NumberFormatOptions notation
This commit is contained in:
commit
e97003f263
8
src/lib/es2020.intl.d.ts
vendored
8
src/lib/es2020.intl.d.ts
vendored
@ -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
2
tests/lib/lib.d.ts
vendored
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user