typescript 5.5.0-dev.20240326 → 5.5.0-dev.20240328
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/lib.es2015.core.d.ts +40 -0
- package/lib/lib.es2020.bigint.d.ts +2 -2
- package/lib/tsc.js +457 -241
- package/lib/typescript.d.ts +26 -12
- package/lib/typescript.js +552 -303
- package/package.json +2 -2
package/lib/lib.es2015.core.d.ts
CHANGED
|
@@ -60,6 +60,8 @@ interface Array<T> {
|
|
|
60
60
|
* @param end If not specified, length of the this object is used as its default value.
|
|
61
61
|
*/
|
|
62
62
|
copyWithin(target: number, start: number, end?: number): this;
|
|
63
|
+
|
|
64
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
interface ArrayConstructor {
|
|
@@ -360,6 +362,8 @@ interface ReadonlyArray<T> {
|
|
|
360
362
|
* predicate. If it is not provided, undefined is used instead.
|
|
361
363
|
*/
|
|
362
364
|
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
|
|
365
|
+
|
|
366
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
|
363
367
|
}
|
|
364
368
|
|
|
365
369
|
interface RegExp {
|
|
@@ -555,3 +559,39 @@ interface StringConstructor {
|
|
|
555
559
|
*/
|
|
556
560
|
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
|
|
557
561
|
}
|
|
562
|
+
|
|
563
|
+
interface Int8Array {
|
|
564
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
interface Uint8Array {
|
|
568
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
interface Uint8ClampedArray {
|
|
572
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
interface Int16Array {
|
|
576
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
interface Uint16Array {
|
|
580
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
interface Int32Array {
|
|
584
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
interface Uint32Array {
|
|
588
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
interface Float32Array {
|
|
592
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
interface Float64Array {
|
|
596
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
597
|
+
}
|
|
@@ -369,7 +369,7 @@ interface BigInt64Array {
|
|
|
369
369
|
subarray(begin?: number, end?: number): BigInt64Array;
|
|
370
370
|
|
|
371
371
|
/** Converts the array to a string by using the current locale. */
|
|
372
|
-
toLocaleString(): string;
|
|
372
|
+
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
373
373
|
|
|
374
374
|
/** Returns a string representation of the array. */
|
|
375
375
|
toString(): string;
|
|
@@ -641,7 +641,7 @@ interface BigUint64Array {
|
|
|
641
641
|
subarray(begin?: number, end?: number): BigUint64Array;
|
|
642
642
|
|
|
643
643
|
/** Converts the array to a string by using the current locale. */
|
|
644
|
-
toLocaleString(): string;
|
|
644
|
+
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
|
|
645
645
|
|
|
646
646
|
/** Returns a string representation of the array. */
|
|
647
647
|
toString(): string;
|