@typescript-deploys/pr-build 5.7.0-pr-59417-7 → 5.7.0-pr-59417-32
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.es2020.bigint.d.ts +2 -2
- package/lib/lib.es5.d.ts +18 -18
- package/lib/tsc.js +10 -9
- package/lib/typescript.js +466 -385
- package/package.json +1 -1
|
@@ -390,7 +390,7 @@ interface BigInt64ArrayConstructor {
|
|
|
390
390
|
readonly prototype: BigInt64Array<ArrayBufferLike>;
|
|
391
391
|
new (length?: number): BigInt64Array<ArrayBuffer>;
|
|
392
392
|
new (array: ArrayLike<bigint> | Iterable<bigint>): BigInt64Array<ArrayBuffer>;
|
|
393
|
-
new <Buffer extends ArrayBufferLike>(buffer: Buffer, byteOffset?: number, length?: number): BigInt64Array<Buffer>;
|
|
393
|
+
new <Buffer extends ArrayBufferLike = ArrayBuffer>(buffer: Buffer, byteOffset?: number, length?: number): BigInt64Array<Buffer>;
|
|
394
394
|
|
|
395
395
|
/** The size in bytes of each element in the array. */
|
|
396
396
|
readonly BYTES_PER_ELEMENT: number;
|
|
@@ -666,7 +666,7 @@ interface BigUint64ArrayConstructor {
|
|
|
666
666
|
readonly prototype: BigUint64Array<ArrayBufferLike>;
|
|
667
667
|
new (length?: number): BigUint64Array<ArrayBuffer>;
|
|
668
668
|
new (array: ArrayLike<bigint> | Iterable<bigint>): BigUint64Array<ArrayBuffer>;
|
|
669
|
-
new <Buffer extends ArrayBufferLike>(buffer: Buffer, byteOffset?: number, length?: number): BigUint64Array<Buffer>;
|
|
669
|
+
new <Buffer extends ArrayBufferLike = ArrayBuffer>(buffer: Buffer, byteOffset?: number, length?: number): BigUint64Array<Buffer>;
|
|
670
670
|
|
|
671
671
|
/** The size in bytes of each element in the array. */
|
|
672
672
|
readonly BYTES_PER_ELEMENT: number;
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -2119,9 +2119,9 @@ interface Int8Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2119
2119
|
interface Int8ArrayConstructor {
|
|
2120
2120
|
readonly prototype: Int8Array<ArrayBufferLike>;
|
|
2121
2121
|
new (length: number): Int8Array<ArrayBuffer>;
|
|
2122
|
-
new
|
|
2122
|
+
new (array: ArrayLike<number>): Int8Array<ArrayBuffer>;
|
|
2123
|
+
new <Buffer extends ArrayBufferLike = ArrayBuffer>(buffer: Buffer, byteOffset?: number, length?: number): Int8Array<Buffer>;
|
|
2123
2124
|
new (array: ArrayLike<number> | ArrayBuffer): Int8Array<ArrayBuffer>;
|
|
2124
|
-
new (array: ArrayLike<number> | ArrayBufferLike): Int8Array<ArrayBufferLike>;
|
|
2125
2125
|
|
|
2126
2126
|
/**
|
|
2127
2127
|
* The size in bytes of each element in the array.
|
|
@@ -2400,9 +2400,9 @@ interface Uint8Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2400
2400
|
interface Uint8ArrayConstructor {
|
|
2401
2401
|
readonly prototype: Uint8Array<ArrayBufferLike>;
|
|
2402
2402
|
new (length: number): Uint8Array<ArrayBuffer>;
|
|
2403
|
-
new
|
|
2403
|
+
new (array: ArrayLike<number>): Uint8Array<ArrayBuffer>;
|
|
2404
|
+
new <Buffer extends ArrayBufferLike = ArrayBuffer>(buffer: Buffer, byteOffset?: number, length?: number): Uint8Array<Buffer>;
|
|
2404
2405
|
new (array: ArrayLike<number> | ArrayBuffer): Uint8Array<ArrayBuffer>;
|
|
2405
|
-
new (array: ArrayLike<number> | ArrayBufferLike): Uint8Array<ArrayBufferLike>;
|
|
2406
2406
|
|
|
2407
2407
|
/**
|
|
2408
2408
|
* The size in bytes of each element in the array.
|
|
@@ -2681,9 +2681,9 @@ interface Uint8ClampedArray<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2681
2681
|
interface Uint8ClampedArrayConstructor {
|
|
2682
2682
|
readonly prototype: Uint8ClampedArray<ArrayBufferLike>;
|
|
2683
2683
|
new (length: number): Uint8ClampedArray<ArrayBuffer>;
|
|
2684
|
-
new
|
|
2684
|
+
new (array: ArrayLike<number>): Uint8ClampedArray<ArrayBuffer>;
|
|
2685
|
+
new <Buffer extends ArrayBufferLike = ArrayBuffer>(buffer: Buffer, byteOffset?: number, length?: number): Uint8ClampedArray<Buffer>;
|
|
2685
2686
|
new (array: ArrayLike<number> | ArrayBuffer): Uint8ClampedArray<ArrayBuffer>;
|
|
2686
|
-
new (array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray<ArrayBufferLike>;
|
|
2687
2687
|
|
|
2688
2688
|
/**
|
|
2689
2689
|
* The size in bytes of each element in the array.
|
|
@@ -2961,9 +2961,9 @@ interface Int16Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
2961
2961
|
interface Int16ArrayConstructor {
|
|
2962
2962
|
readonly prototype: Int16Array<ArrayBufferLike>;
|
|
2963
2963
|
new (length: number): Int16Array<ArrayBuffer>;
|
|
2964
|
-
new
|
|
2964
|
+
new (array: ArrayLike<number>): Int16Array<ArrayBuffer>;
|
|
2965
|
+
new <Buffer extends ArrayBufferLike = ArrayBuffer>(buffer: Buffer, byteOffset?: number, length?: number): Int16Array<Buffer>;
|
|
2965
2966
|
new (array: ArrayLike<number> | ArrayBuffer): Int16Array<ArrayBuffer>;
|
|
2966
|
-
new (array: ArrayLike<number> | ArrayBufferLike): Int16Array<ArrayBufferLike>;
|
|
2967
2967
|
|
|
2968
2968
|
/**
|
|
2969
2969
|
* The size in bytes of each element in the array.
|
|
@@ -3242,9 +3242,9 @@ interface Uint16Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3242
3242
|
interface Uint16ArrayConstructor {
|
|
3243
3243
|
readonly prototype: Uint16Array<ArrayBufferLike>;
|
|
3244
3244
|
new (length: number): Uint16Array<ArrayBuffer>;
|
|
3245
|
-
new
|
|
3245
|
+
new (array: ArrayLike<number>): Uint16Array<ArrayBuffer>;
|
|
3246
|
+
new <Buffer extends ArrayBufferLike = ArrayBuffer>(buffer: Buffer, byteOffset?: number, length?: number): Uint16Array<Buffer>;
|
|
3246
3247
|
new (array: ArrayLike<number> | ArrayBuffer): Uint16Array<ArrayBuffer>;
|
|
3247
|
-
new (array: ArrayLike<number> | ArrayBufferLike): Uint16Array<ArrayBufferLike>;
|
|
3248
3248
|
|
|
3249
3249
|
/**
|
|
3250
3250
|
* The size in bytes of each element in the array.
|
|
@@ -3522,9 +3522,9 @@ interface Int32Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3522
3522
|
interface Int32ArrayConstructor {
|
|
3523
3523
|
readonly prototype: Int32Array<ArrayBufferLike>;
|
|
3524
3524
|
new (length: number): Int32Array<ArrayBuffer>;
|
|
3525
|
-
new
|
|
3525
|
+
new (array: ArrayLike<number>): Int32Array<ArrayBuffer>;
|
|
3526
|
+
new <Buffer extends ArrayBufferLike = ArrayBuffer>(buffer: Buffer, byteOffset?: number, length?: number): Int32Array<Buffer>;
|
|
3526
3527
|
new (array: ArrayLike<number> | ArrayBuffer): Int32Array<ArrayBuffer>;
|
|
3527
|
-
new (array: ArrayLike<number> | ArrayBufferLike): Int32Array<ArrayBufferLike>;
|
|
3528
3528
|
|
|
3529
3529
|
/**
|
|
3530
3530
|
* The size in bytes of each element in the array.
|
|
@@ -3802,9 +3802,9 @@ interface Uint32Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
3802
3802
|
interface Uint32ArrayConstructor {
|
|
3803
3803
|
readonly prototype: Uint32Array<ArrayBufferLike>;
|
|
3804
3804
|
new (length: number): Uint32Array<ArrayBuffer>;
|
|
3805
|
-
new
|
|
3805
|
+
new (array: ArrayLike<number>): Uint32Array<ArrayBuffer>;
|
|
3806
|
+
new <Buffer extends ArrayBufferLike = ArrayBuffer>(buffer: Buffer, byteOffset?: number, length?: number): Uint32Array<Buffer>;
|
|
3806
3807
|
new (array: ArrayLike<number> | ArrayBuffer): Uint32Array<ArrayBuffer>;
|
|
3807
|
-
new (array: ArrayLike<number> | ArrayBufferLike): Uint32Array<ArrayBufferLike>;
|
|
3808
3808
|
|
|
3809
3809
|
/**
|
|
3810
3810
|
* The size in bytes of each element in the array.
|
|
@@ -4083,9 +4083,9 @@ interface Float32Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4083
4083
|
interface Float32ArrayConstructor {
|
|
4084
4084
|
readonly prototype: Float32Array<ArrayBufferLike>;
|
|
4085
4085
|
new (length: number): Float32Array<ArrayBuffer>;
|
|
4086
|
-
new
|
|
4086
|
+
new (array: ArrayLike<number>): Float32Array<ArrayBuffer>;
|
|
4087
|
+
new <Buffer extends ArrayBufferLike = ArrayBuffer>(buffer: Buffer, byteOffset?: number, length?: number): Float32Array<Buffer>;
|
|
4087
4088
|
new (array: ArrayLike<number> | ArrayBuffer): Float32Array<ArrayBuffer>;
|
|
4088
|
-
new (array: ArrayLike<number> | ArrayBufferLike): Float32Array<ArrayBufferLike>;
|
|
4089
4089
|
|
|
4090
4090
|
/**
|
|
4091
4091
|
* The size in bytes of each element in the array.
|
|
@@ -4364,9 +4364,9 @@ interface Float64Array<Buffer extends ArrayBufferLike = ArrayBufferLike> {
|
|
|
4364
4364
|
interface Float64ArrayConstructor {
|
|
4365
4365
|
readonly prototype: Float64Array<ArrayBufferLike>;
|
|
4366
4366
|
new (length: number): Float64Array<ArrayBuffer>;
|
|
4367
|
-
new
|
|
4367
|
+
new (array: ArrayLike<number>): Float64Array<ArrayBuffer>;
|
|
4368
|
+
new <Buffer extends ArrayBufferLike = ArrayBuffer>(buffer: Buffer, byteOffset?: number, length?: number): Float64Array<Buffer>;
|
|
4368
4369
|
new (array: ArrayLike<number> | ArrayBuffer): Float64Array<ArrayBuffer>;
|
|
4369
|
-
new (array: ArrayLike<number> | ArrayBufferLike): Float64Array<ArrayBufferLike>;
|
|
4370
4370
|
|
|
4371
4371
|
/**
|
|
4372
4372
|
* The size in bytes of each element in the array.
|
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.7";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20240826`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -6139,6 +6139,8 @@ var Diagnostics = {
|
|
|
6139
6139
|
/*reportsDeprecated*/
|
|
6140
6140
|
true
|
|
6141
6141
|
),
|
|
6142
|
+
Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute: diag(1541, 1 /* Error */, "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541", "Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),
|
|
6143
|
+
Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute: diag(1542, 1 /* Error */, "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542", "Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),
|
|
6142
6144
|
The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
|
|
6143
6145
|
The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
|
|
6144
6146
|
Call_signature_return_types_0_and_1_are_incompatible: diag(
|
|
@@ -7846,6 +7848,8 @@ var Diagnostics = {
|
|
|
7846
7848
|
Add_all_optional_parameters: diag(95193, 3 /* Message */, "Add_all_optional_parameters_95193", "Add all optional parameters"),
|
|
7847
7849
|
Wrap_in_parentheses: diag(95194, 3 /* Message */, "Wrap_in_parentheses_95194", "Wrap in parentheses"),
|
|
7848
7850
|
Wrap_all_invalid_decorator_expressions_in_parentheses: diag(95195, 3 /* Message */, "Wrap_all_invalid_decorator_expressions_in_parentheses_95195", "Wrap all invalid decorator expressions in parentheses"),
|
|
7851
|
+
Add_resolution_mode_import_attribute: diag(95196, 3 /* Message */, "Add_resolution_mode_import_attribute_95196", "Add 'resolution-mode' import attribute"),
|
|
7852
|
+
Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it: diag(95197, 3 /* Message */, "Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it_95197", "Add 'resolution-mode' import attribute to all type-only imports that need it"),
|
|
7849
7853
|
No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, 1 /* Error */, "No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004", "No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),
|
|
7850
7854
|
Classes_may_not_have_a_field_named_constructor: diag(18006, 1 /* Error */, "Classes_may_not_have_a_field_named_constructor_18006", "Classes may not have a field named 'constructor'."),
|
|
7851
7855
|
JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, 1 /* Error */, "JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007", "JSX expressions may not use the comma operator. Did you mean to write an array?"),
|
|
@@ -48455,7 +48459,7 @@ function createTypeChecker(host) {
|
|
|
48455
48459
|
return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, !ignoreErrors ? moduleReferenceExpression : void 0, isForAugmentation) : void 0;
|
|
48456
48460
|
}
|
|
48457
48461
|
function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) {
|
|
48458
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
48462
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
48459
48463
|
if (errorNode && startsWith(moduleReference, "@types/")) {
|
|
48460
48464
|
const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1;
|
|
48461
48465
|
const withoutAtTypePrefix = removePrefix(moduleReference, "@types/");
|
|
@@ -48524,14 +48528,11 @@ function createTypeChecker(host) {
|
|
|
48524
48528
|
if (ext === ".ts" /* Ts */ || ext === ".js" /* Js */ || ext === ".tsx" /* Tsx */ || ext === ".jsx" /* Jsx */) {
|
|
48525
48529
|
diagnosticDetails = createModeMismatchDetails(currentSourceFile);
|
|
48526
48530
|
}
|
|
48531
|
+
const message = (overrideHost == null ? void 0 : overrideHost.kind) === 272 /* ImportDeclaration */ && ((_j = overrideHost.importClause) == null ? void 0 : _j.isTypeOnly) ? Diagnostics.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : (overrideHost == null ? void 0 : overrideHost.kind) === 205 /* ImportType */ ? Diagnostics.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute : Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead;
|
|
48527
48532
|
diagnostics.add(createDiagnosticForNodeFromMessageChain(
|
|
48528
48533
|
getSourceFileOfNode(errorNode),
|
|
48529
48534
|
errorNode,
|
|
48530
|
-
chainDiagnosticMessages(
|
|
48531
|
-
diagnosticDetails,
|
|
48532
|
-
Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,
|
|
48533
|
-
moduleReference
|
|
48534
|
-
)
|
|
48535
|
+
chainDiagnosticMessages(diagnosticDetails, message, moduleReference)
|
|
48535
48536
|
));
|
|
48536
48537
|
}
|
|
48537
48538
|
}
|
|
@@ -48590,14 +48591,14 @@ function createTypeChecker(host) {
|
|
|
48590
48591
|
error(errorNode, Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference);
|
|
48591
48592
|
} else if (mode === 99 /* ESNext */ && resolutionIsNode16OrNext && isExtensionlessRelativePathImport) {
|
|
48592
48593
|
const absoluteRef = getNormalizedAbsolutePath(moduleReference, getDirectoryPath(currentSourceFile.path));
|
|
48593
|
-
const suggestedExt = (
|
|
48594
|
+
const suggestedExt = (_k = suggestedExtensions.find(([actualExt, _importExt]) => host.fileExists(absoluteRef + actualExt))) == null ? void 0 : _k[1];
|
|
48594
48595
|
if (suggestedExt) {
|
|
48595
48596
|
error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0, moduleReference + suggestedExt);
|
|
48596
48597
|
} else {
|
|
48597
48598
|
error(errorNode, Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path);
|
|
48598
48599
|
}
|
|
48599
48600
|
} else {
|
|
48600
|
-
if ((
|
|
48601
|
+
if ((_l = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _l.alternateResult) {
|
|
48601
48602
|
const errorInfo = createModuleNotFoundChain(currentSourceFile, host, moduleReference, mode, moduleReference);
|
|
48602
48603
|
errorOrSuggestion(
|
|
48603
48604
|
/*isError*/
|