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.ts29
1 files changed, 22 insertions, 7 deletions
diff --git a/cli/tsc/dts/lib.es5.d.ts b/cli/tsc/dts/lib.es5.d.ts
index 439ed6b81..dee445d07 100644
--- a/cli/tsc/dts/lib.es5.d.ts
+++ b/cli/tsc/dts/lib.es5.d.ts
@@ -644,6 +644,7 @@ interface ImportCallOptions {
/**
* The type for the `assert` property of the optional second argument to `import()`.
+ * @deprecated
*/
interface ImportAssertions {
[key: string]: string;
@@ -1667,6 +1668,11 @@ type Capitalize<S extends string> = intrinsic;
type Uncapitalize<S extends string> = intrinsic;
/**
+ * Marker for non-inference type position
+ */
+type NoInfer<T> = intrinsic;
+
+/**
* Marker for contextual 'this' type
*/
interface ThisType<T> {}
@@ -4418,11 +4424,14 @@ declare namespace Intl {
compare(x: string, y: string): number;
resolvedOptions(): ResolvedCollatorOptions;
}
- var Collator: {
+
+ interface CollatorConstructor {
new (locales?: string | string[], options?: CollatorOptions): Collator;
(locales?: string | string[], options?: CollatorOptions): Collator;
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
- };
+ }
+
+ var Collator: CollatorConstructor;
interface NumberFormatOptions {
localeMatcher?: string | undefined;
@@ -4454,12 +4463,15 @@ declare namespace Intl {
format(value: number): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
- var NumberFormat: {
+
+ interface NumberFormatConstructor {
new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
readonly prototype: NumberFormat;
- };
+ }
+
+ var NumberFormat: NumberFormatConstructor;
interface DateTimeFormatOptions {
localeMatcher?: "best fit" | "lookup" | undefined;
@@ -4474,7 +4486,7 @@ declare namespace Intl {
timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
formatMatcher?: "best fit" | "basic" | undefined;
hour12?: boolean | undefined;
- timeZone?: string | (typeof globalThis extends { Temporal: { TimeZoneProtocol: infer T; }; } ? T : undefined) | undefined
+ timeZone?: string | (typeof globalThis extends { Temporal: { TimeZoneProtocol: infer T; }; } ? T : undefined) | undefined;
}
interface ResolvedDateTimeFormatOptions {
@@ -4498,12 +4510,15 @@ declare namespace Intl {
format(date?: Date | number): string;
resolvedOptions(): ResolvedDateTimeFormatOptions;
}
- var DateTimeFormat: {
+
+ interface DateTimeFormatConstructor {
new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
readonly prototype: DateTimeFormat;
- };
+ }
+
+ var DateTimeFormat: DateTimeFormatConstructor;
}
interface String {