summaryrefslogtreecommitdiff
path: root/cli/tsc/dts/lib.es5.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tsc/dts/lib.es5.d.ts')
-rw-r--r--cli/tsc/dts/lib.es5.d.ts40
1 files changed, 31 insertions, 9 deletions
diff --git a/cli/tsc/dts/lib.es5.d.ts b/cli/tsc/dts/lib.es5.d.ts
index dee445d07..cf9adfe1e 100644
--- a/cli/tsc/dts/lib.es5.d.ts
+++ b/cli/tsc/dts/lib.es5.d.ts
@@ -818,7 +818,7 @@ interface Date {
getMilliseconds(): number;
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
getUTCMilliseconds(): number;
- /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
+ /** Gets the difference in minutes between Universal Coordinated Time (UTC) and the time on the local computer. */
getTimezoneOffset(): number;
/**
* Sets the date and time value in the Date object.
@@ -4433,12 +4433,33 @@ declare namespace Intl {
var Collator: CollatorConstructor;
+ interface NumberFormatOptionsStyleRegistry {
+ decimal: never;
+ percent: never;
+ currency: never;
+ }
+
+ type NumberFormatOptionsStyle = keyof NumberFormatOptionsStyleRegistry;
+
+ interface NumberFormatOptionsCurrencyDisplayRegistry {
+ code: never;
+ symbol: never;
+ name: never;
+ }
+
+ type NumberFormatOptionsCurrencyDisplay = keyof NumberFormatOptionsCurrencyDisplayRegistry;
+
+ interface NumberFormatOptionsUseGroupingRegistry {}
+
+ type NumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | "true" | "false" | boolean;
+ type ResolvedNumberFormatOptionsUseGrouping = {} extends NumberFormatOptionsUseGroupingRegistry ? boolean : keyof NumberFormatOptionsUseGroupingRegistry | false;
+
interface NumberFormatOptions {
- localeMatcher?: string | undefined;
- style?: string | undefined;
+ localeMatcher?: "lookup" | "best fit" | undefined;
+ style?: NumberFormatOptionsStyle | undefined;
currency?: string | undefined;
- currencySign?: string | undefined;
- useGrouping?: boolean | undefined;
+ currencyDisplay?: NumberFormatOptionsCurrencyDisplay | undefined;
+ useGrouping?: NumberFormatOptionsUseGrouping | undefined;
minimumIntegerDigits?: number | undefined;
minimumFractionDigits?: number | undefined;
maximumFractionDigits?: number | undefined;
@@ -4449,14 +4470,15 @@ declare namespace Intl {
interface ResolvedNumberFormatOptions {
locale: string;
numberingSystem: string;
- style: string;
+ style: NumberFormatOptionsStyle;
currency?: string;
+ currencyDisplay?: NumberFormatOptionsCurrencyDisplay;
minimumIntegerDigits: number;
- minimumFractionDigits: number;
- maximumFractionDigits: number;
+ minimumFractionDigits?: number;
+ maximumFractionDigits?: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
- useGrouping: boolean;
+ useGrouping: ResolvedNumberFormatOptionsUseGrouping;
}
interface NumberFormat {