@typescript-deploys/pr-build 5.6.0-pr-58668-2 → 5.6.0-pr-58824-2
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/tsc.js +20 -22
- package/lib/typescript.js +20 -22
- package/package.json +1 -1
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.6";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20240610`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -46513,8 +46513,6 @@ function createTypeChecker(host) {
|
|
|
46513
46513
|
moduleName,
|
|
46514
46514
|
moduleName,
|
|
46515
46515
|
moduleNotFoundError,
|
|
46516
|
-
/*ignoreErrors*/
|
|
46517
|
-
false,
|
|
46518
46516
|
/*isForAugmentation*/
|
|
46519
46517
|
true
|
|
46520
46518
|
);
|
|
@@ -48082,14 +48080,14 @@ function createTypeChecker(host) {
|
|
|
48082
48080
|
function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors) {
|
|
48083
48081
|
const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */;
|
|
48084
48082
|
const errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;
|
|
48085
|
-
return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage
|
|
48083
|
+
return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage);
|
|
48086
48084
|
}
|
|
48087
|
-
function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError,
|
|
48088
|
-
return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError,
|
|
48085
|
+
function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, isForAugmentation = false) {
|
|
48086
|
+
return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, moduleReferenceExpression, isForAugmentation) : void 0;
|
|
48089
48087
|
}
|
|
48090
48088
|
function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) {
|
|
48091
48089
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
48092
|
-
if (
|
|
48090
|
+
if (startsWith(moduleReference, "@types/")) {
|
|
48093
48091
|
const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1;
|
|
48094
48092
|
const withoutAtTypePrefix = removePrefix(moduleReference, "@types/");
|
|
48095
48093
|
error(errorNode, diag2, withoutAtTypePrefix, moduleReference);
|
|
@@ -48111,7 +48109,7 @@ function createTypeChecker(host) {
|
|
|
48111
48109
|
const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? host.getModeForUsageLocation(currentSourceFile, contextSpecifier) : host.getDefaultResolutionModeForFile(currentSourceFile);
|
|
48112
48110
|
const moduleResolutionKind = getEmitModuleResolutionKind(compilerOptions);
|
|
48113
48111
|
const resolvedModule = (_g = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _g.resolvedModule;
|
|
48114
|
-
const resolutionDiagnostic =
|
|
48112
|
+
const resolutionDiagnostic = resolvedModule && getResolutionDiagnostic(compilerOptions, resolvedModule, currentSourceFile);
|
|
48115
48113
|
const sourceFile = resolvedModule && (!resolutionDiagnostic || resolutionDiagnostic === Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set) && host.getSourceFile(resolvedModule.resolvedFileName);
|
|
48116
48114
|
if (sourceFile) {
|
|
48117
48115
|
if (resolutionDiagnostic) {
|
|
@@ -48119,7 +48117,7 @@ function createTypeChecker(host) {
|
|
|
48119
48117
|
}
|
|
48120
48118
|
if (resolvedModule.resolvedUsingTsExtension && isDeclarationFileName(moduleReference)) {
|
|
48121
48119
|
const importOrExport = ((_h = findAncestor(location, isImportDeclaration)) == null ? void 0 : _h.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration));
|
|
48122
|
-
if (
|
|
48120
|
+
if (importOrExport && !importOrExport.isTypeOnly || findAncestor(location, isImportCall)) {
|
|
48123
48121
|
error(
|
|
48124
48122
|
errorNode,
|
|
48125
48123
|
Diagnostics.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,
|
|
@@ -48128,13 +48126,13 @@ function createTypeChecker(host) {
|
|
|
48128
48126
|
}
|
|
48129
48127
|
} else if (resolvedModule.resolvedUsingTsExtension && !shouldAllowImportingTsExtension(compilerOptions, currentSourceFile.fileName)) {
|
|
48130
48128
|
const importOrExport = ((_i = findAncestor(location, isImportDeclaration)) == null ? void 0 : _i.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration));
|
|
48131
|
-
if (
|
|
48129
|
+
if (!((importOrExport == null ? void 0 : importOrExport.isTypeOnly) || findAncestor(location, isImportTypeNode))) {
|
|
48132
48130
|
const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference));
|
|
48133
48131
|
error(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension);
|
|
48134
48132
|
}
|
|
48135
48133
|
}
|
|
48136
48134
|
if (sourceFile.symbol) {
|
|
48137
|
-
if (
|
|
48135
|
+
if (resolvedModule.isExternalLibraryImport && !resolutionExtensionIsTSOrJson(resolvedModule.extension)) {
|
|
48138
48136
|
errorOnImplicitAnyModule(
|
|
48139
48137
|
/*isError*/
|
|
48140
48138
|
false,
|
|
@@ -48145,7 +48143,7 @@ function createTypeChecker(host) {
|
|
|
48145
48143
|
moduleReference
|
|
48146
48144
|
);
|
|
48147
48145
|
}
|
|
48148
|
-
if (
|
|
48146
|
+
if (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */) {
|
|
48149
48147
|
const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration);
|
|
48150
48148
|
const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l));
|
|
48151
48149
|
if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !hasResolutionModeOverride(overrideHost)) {
|
|
@@ -48205,7 +48203,7 @@ function createTypeChecker(host) {
|
|
|
48205
48203
|
}
|
|
48206
48204
|
return getMergedSymbol(sourceFile.symbol);
|
|
48207
48205
|
}
|
|
48208
|
-
if (
|
|
48206
|
+
if (moduleNotFoundError) {
|
|
48209
48207
|
error(errorNode, Diagnostics.File_0_is_not_a_module, sourceFile.fileName);
|
|
48210
48208
|
}
|
|
48211
48209
|
return void 0;
|
|
@@ -48220,9 +48218,6 @@ function createTypeChecker(host) {
|
|
|
48220
48218
|
return getMergedSymbol(pattern.symbol);
|
|
48221
48219
|
}
|
|
48222
48220
|
}
|
|
48223
|
-
if (!errorNode) {
|
|
48224
|
-
return void 0;
|
|
48225
|
-
}
|
|
48226
48221
|
if (resolvedModule && !resolutionExtensionIsTSOrJson(resolvedModule.extension) && resolutionDiagnostic === void 0 || resolutionDiagnostic === Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type) {
|
|
48227
48222
|
if (isForAugmentation) {
|
|
48228
48223
|
const diag2 = Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;
|
|
@@ -53856,7 +53851,7 @@ function createTypeChecker(host) {
|
|
|
53856
53851
|
}
|
|
53857
53852
|
}
|
|
53858
53853
|
function pushTypeResolution(target, propertyName) {
|
|
53859
|
-
const resolutionCycleStartIndex = findResolutionCycleStartIndex(target, propertyName);
|
|
53854
|
+
const resolutionCycleStartIndex = findResolutionCycleStartIndex(target, propertyName, resolutionStart);
|
|
53860
53855
|
if (resolutionCycleStartIndex >= 0) {
|
|
53861
53856
|
const { length: length2 } = resolutionTargets;
|
|
53862
53857
|
for (let i = resolutionCycleStartIndex; i < length2; i++) {
|
|
@@ -53872,8 +53867,11 @@ function createTypeChecker(host) {
|
|
|
53872
53867
|
resolutionPropertyNames.push(propertyName);
|
|
53873
53868
|
return true;
|
|
53874
53869
|
}
|
|
53875
|
-
function
|
|
53876
|
-
|
|
53870
|
+
function isInResolutionStack(target, propertyName) {
|
|
53871
|
+
return findResolutionCycleStartIndex(target, propertyName, 0) >= 0;
|
|
53872
|
+
}
|
|
53873
|
+
function findResolutionCycleStartIndex(target, propertyName, start) {
|
|
53874
|
+
for (let i = resolutionTargets.length - 1; i >= start; i--) {
|
|
53877
53875
|
if (resolutionTargetHasProperty(resolutionTargets[i], resolutionPropertyNames[i])) {
|
|
53878
53876
|
return -1;
|
|
53879
53877
|
}
|
|
@@ -57929,7 +57927,7 @@ function createTypeChecker(host) {
|
|
|
57929
57927
|
return getReturnTypeOfTypeTag(declaration);
|
|
57930
57928
|
}
|
|
57931
57929
|
function isResolvingReturnTypeOfSignature(signature) {
|
|
57932
|
-
return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType &&
|
|
57930
|
+
return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && isInResolutionStack(signature, 3 /* ResolvedReturnType */);
|
|
57933
57931
|
}
|
|
57934
57932
|
function getRestTypeOfSignature(signature) {
|
|
57935
57933
|
return tryGetRestTypeOfSignature(signature) || anyType;
|
|
@@ -61554,7 +61552,7 @@ function createTypeChecker(host) {
|
|
|
61554
61552
|
if (t.flags & (3 /* AnyOrUnknown */ | 58982400 /* InstantiableNonPrimitive */ | 524288 /* Object */ | 2097152 /* Intersection */) && t !== wildcardType && !isErrorType(t)) {
|
|
61555
61553
|
if (!type.declaration.nameType) {
|
|
61556
61554
|
let constraint;
|
|
61557
|
-
if (isArrayType(t) || t.flags & 1 /* Any */ &&
|
|
61555
|
+
if (isArrayType(t) || t.flags & 1 /* Any */ && !isInResolutionStack(typeVariable, 4 /* ImmediateBaseConstraint */) && (constraint = getConstraintOfTypeParameter(typeVariable)) && everyType(constraint, isArrayOrTupleType)) {
|
|
61558
61556
|
return instantiateMappedArrayType(t, type, prependTypeMapping(typeVariable, t, mapper));
|
|
61559
61557
|
}
|
|
61560
61558
|
if (isTupleType(t)) {
|
|
@@ -70917,7 +70915,7 @@ function createTypeChecker(host) {
|
|
|
70917
70915
|
return nameStr !== void 0 && getTypeOfPropertyOfContextualType(thisType, nameStr) || void 0;
|
|
70918
70916
|
}
|
|
70919
70917
|
function isCircularMappedProperty(symbol) {
|
|
70920
|
-
return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type &&
|
|
70918
|
+
return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type && isInResolutionStack(symbol, 0 /* Type */));
|
|
70921
70919
|
}
|
|
70922
70920
|
function getTypeOfPropertyOfContextualType(type, name, nameType) {
|
|
70923
70921
|
return mapType(
|
package/lib/typescript.js
CHANGED
|
@@ -2375,7 +2375,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2375
2375
|
|
|
2376
2376
|
// src/compiler/corePublic.ts
|
|
2377
2377
|
var versionMajorMinor = "5.6";
|
|
2378
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2378
|
+
var version = `${versionMajorMinor}.0-insiders.20240610`;
|
|
2379
2379
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2380
2380
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2381
2381
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -51286,8 +51286,6 @@ function createTypeChecker(host) {
|
|
|
51286
51286
|
moduleName,
|
|
51287
51287
|
moduleName,
|
|
51288
51288
|
moduleNotFoundError,
|
|
51289
|
-
/*ignoreErrors*/
|
|
51290
|
-
false,
|
|
51291
51289
|
/*isForAugmentation*/
|
|
51292
51290
|
true
|
|
51293
51291
|
);
|
|
@@ -52855,14 +52853,14 @@ function createTypeChecker(host) {
|
|
|
52855
52853
|
function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors) {
|
|
52856
52854
|
const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */;
|
|
52857
52855
|
const errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;
|
|
52858
|
-
return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage
|
|
52856
|
+
return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage);
|
|
52859
52857
|
}
|
|
52860
|
-
function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError,
|
|
52861
|
-
return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError,
|
|
52858
|
+
function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, isForAugmentation = false) {
|
|
52859
|
+
return isStringLiteralLike(moduleReferenceExpression) ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, moduleReferenceExpression, isForAugmentation) : void 0;
|
|
52862
52860
|
}
|
|
52863
52861
|
function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation = false) {
|
|
52864
52862
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
52865
|
-
if (
|
|
52863
|
+
if (startsWith(moduleReference, "@types/")) {
|
|
52866
52864
|
const diag2 = Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1;
|
|
52867
52865
|
const withoutAtTypePrefix = removePrefix(moduleReference, "@types/");
|
|
52868
52866
|
error2(errorNode, diag2, withoutAtTypePrefix, moduleReference);
|
|
@@ -52884,7 +52882,7 @@ function createTypeChecker(host) {
|
|
|
52884
52882
|
const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? host.getModeForUsageLocation(currentSourceFile, contextSpecifier) : host.getDefaultResolutionModeForFile(currentSourceFile);
|
|
52885
52883
|
const moduleResolutionKind = getEmitModuleResolutionKind(compilerOptions);
|
|
52886
52884
|
const resolvedModule = (_g = host.getResolvedModule(currentSourceFile, moduleReference, mode)) == null ? void 0 : _g.resolvedModule;
|
|
52887
|
-
const resolutionDiagnostic =
|
|
52885
|
+
const resolutionDiagnostic = resolvedModule && getResolutionDiagnostic(compilerOptions, resolvedModule, currentSourceFile);
|
|
52888
52886
|
const sourceFile = resolvedModule && (!resolutionDiagnostic || resolutionDiagnostic === Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set) && host.getSourceFile(resolvedModule.resolvedFileName);
|
|
52889
52887
|
if (sourceFile) {
|
|
52890
52888
|
if (resolutionDiagnostic) {
|
|
@@ -52892,7 +52890,7 @@ function createTypeChecker(host) {
|
|
|
52892
52890
|
}
|
|
52893
52891
|
if (resolvedModule.resolvedUsingTsExtension && isDeclarationFileName(moduleReference)) {
|
|
52894
52892
|
const importOrExport = ((_h = findAncestor(location, isImportDeclaration)) == null ? void 0 : _h.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration));
|
|
52895
|
-
if (
|
|
52893
|
+
if (importOrExport && !importOrExport.isTypeOnly || findAncestor(location, isImportCall)) {
|
|
52896
52894
|
error2(
|
|
52897
52895
|
errorNode,
|
|
52898
52896
|
Diagnostics.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,
|
|
@@ -52901,13 +52899,13 @@ function createTypeChecker(host) {
|
|
|
52901
52899
|
}
|
|
52902
52900
|
} else if (resolvedModule.resolvedUsingTsExtension && !shouldAllowImportingTsExtension(compilerOptions, currentSourceFile.fileName)) {
|
|
52903
52901
|
const importOrExport = ((_i = findAncestor(location, isImportDeclaration)) == null ? void 0 : _i.importClause) || findAncestor(location, or(isImportEqualsDeclaration, isExportDeclaration));
|
|
52904
|
-
if (
|
|
52902
|
+
if (!((importOrExport == null ? void 0 : importOrExport.isTypeOnly) || findAncestor(location, isImportTypeNode))) {
|
|
52905
52903
|
const tsExtension = Debug.checkDefined(tryExtractTSExtension(moduleReference));
|
|
52906
52904
|
error2(errorNode, Diagnostics.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled, tsExtension);
|
|
52907
52905
|
}
|
|
52908
52906
|
}
|
|
52909
52907
|
if (sourceFile.symbol) {
|
|
52910
|
-
if (
|
|
52908
|
+
if (resolvedModule.isExternalLibraryImport && !resolutionExtensionIsTSOrJson(resolvedModule.extension)) {
|
|
52911
52909
|
errorOnImplicitAnyModule(
|
|
52912
52910
|
/*isError*/
|
|
52913
52911
|
false,
|
|
@@ -52918,7 +52916,7 @@ function createTypeChecker(host) {
|
|
|
52918
52916
|
moduleReference
|
|
52919
52917
|
);
|
|
52920
52918
|
}
|
|
52921
|
-
if (
|
|
52919
|
+
if (moduleResolutionKind === 3 /* Node16 */ || moduleResolutionKind === 99 /* NodeNext */) {
|
|
52922
52920
|
const isSyncImport = currentSourceFile.impliedNodeFormat === 1 /* CommonJS */ && !findAncestor(location, isImportCall) || !!findAncestor(location, isImportEqualsDeclaration);
|
|
52923
52921
|
const overrideHost = findAncestor(location, (l) => isImportTypeNode(l) || isExportDeclaration(l) || isImportDeclaration(l));
|
|
52924
52922
|
if (isSyncImport && sourceFile.impliedNodeFormat === 99 /* ESNext */ && !hasResolutionModeOverride(overrideHost)) {
|
|
@@ -52978,7 +52976,7 @@ function createTypeChecker(host) {
|
|
|
52978
52976
|
}
|
|
52979
52977
|
return getMergedSymbol(sourceFile.symbol);
|
|
52980
52978
|
}
|
|
52981
|
-
if (
|
|
52979
|
+
if (moduleNotFoundError) {
|
|
52982
52980
|
error2(errorNode, Diagnostics.File_0_is_not_a_module, sourceFile.fileName);
|
|
52983
52981
|
}
|
|
52984
52982
|
return void 0;
|
|
@@ -52993,9 +52991,6 @@ function createTypeChecker(host) {
|
|
|
52993
52991
|
return getMergedSymbol(pattern.symbol);
|
|
52994
52992
|
}
|
|
52995
52993
|
}
|
|
52996
|
-
if (!errorNode) {
|
|
52997
|
-
return void 0;
|
|
52998
|
-
}
|
|
52999
52994
|
if (resolvedModule && !resolutionExtensionIsTSOrJson(resolvedModule.extension) && resolutionDiagnostic === void 0 || resolutionDiagnostic === Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type) {
|
|
53000
52995
|
if (isForAugmentation) {
|
|
53001
52996
|
const diag2 = Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;
|
|
@@ -58629,7 +58624,7 @@ function createTypeChecker(host) {
|
|
|
58629
58624
|
}
|
|
58630
58625
|
}
|
|
58631
58626
|
function pushTypeResolution(target, propertyName) {
|
|
58632
|
-
const resolutionCycleStartIndex = findResolutionCycleStartIndex(target, propertyName);
|
|
58627
|
+
const resolutionCycleStartIndex = findResolutionCycleStartIndex(target, propertyName, resolutionStart);
|
|
58633
58628
|
if (resolutionCycleStartIndex >= 0) {
|
|
58634
58629
|
const { length: length2 } = resolutionTargets;
|
|
58635
58630
|
for (let i = resolutionCycleStartIndex; i < length2; i++) {
|
|
@@ -58645,8 +58640,11 @@ function createTypeChecker(host) {
|
|
|
58645
58640
|
resolutionPropertyNames.push(propertyName);
|
|
58646
58641
|
return true;
|
|
58647
58642
|
}
|
|
58648
|
-
function
|
|
58649
|
-
|
|
58643
|
+
function isInResolutionStack(target, propertyName) {
|
|
58644
|
+
return findResolutionCycleStartIndex(target, propertyName, 0) >= 0;
|
|
58645
|
+
}
|
|
58646
|
+
function findResolutionCycleStartIndex(target, propertyName, start) {
|
|
58647
|
+
for (let i = resolutionTargets.length - 1; i >= start; i--) {
|
|
58650
58648
|
if (resolutionTargetHasProperty(resolutionTargets[i], resolutionPropertyNames[i])) {
|
|
58651
58649
|
return -1;
|
|
58652
58650
|
}
|
|
@@ -62702,7 +62700,7 @@ function createTypeChecker(host) {
|
|
|
62702
62700
|
return getReturnTypeOfTypeTag(declaration);
|
|
62703
62701
|
}
|
|
62704
62702
|
function isResolvingReturnTypeOfSignature(signature) {
|
|
62705
|
-
return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType &&
|
|
62703
|
+
return signature.compositeSignatures && some(signature.compositeSignatures, isResolvingReturnTypeOfSignature) || !signature.resolvedReturnType && isInResolutionStack(signature, 3 /* ResolvedReturnType */);
|
|
62706
62704
|
}
|
|
62707
62705
|
function getRestTypeOfSignature(signature) {
|
|
62708
62706
|
return tryGetRestTypeOfSignature(signature) || anyType;
|
|
@@ -66327,7 +66325,7 @@ function createTypeChecker(host) {
|
|
|
66327
66325
|
if (t.flags & (3 /* AnyOrUnknown */ | 58982400 /* InstantiableNonPrimitive */ | 524288 /* Object */ | 2097152 /* Intersection */) && t !== wildcardType && !isErrorType(t)) {
|
|
66328
66326
|
if (!type.declaration.nameType) {
|
|
66329
66327
|
let constraint;
|
|
66330
|
-
if (isArrayType(t) || t.flags & 1 /* Any */ &&
|
|
66328
|
+
if (isArrayType(t) || t.flags & 1 /* Any */ && !isInResolutionStack(typeVariable, 4 /* ImmediateBaseConstraint */) && (constraint = getConstraintOfTypeParameter(typeVariable)) && everyType(constraint, isArrayOrTupleType)) {
|
|
66331
66329
|
return instantiateMappedArrayType(t, type, prependTypeMapping(typeVariable, t, mapper));
|
|
66332
66330
|
}
|
|
66333
66331
|
if (isTupleType(t)) {
|
|
@@ -75690,7 +75688,7 @@ function createTypeChecker(host) {
|
|
|
75690
75688
|
return nameStr !== void 0 && getTypeOfPropertyOfContextualType(thisType, nameStr) || void 0;
|
|
75691
75689
|
}
|
|
75692
75690
|
function isCircularMappedProperty(symbol) {
|
|
75693
|
-
return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type &&
|
|
75691
|
+
return !!(getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.links.type && isInResolutionStack(symbol, 0 /* Type */));
|
|
75694
75692
|
}
|
|
75695
75693
|
function getTypeOfPropertyOfContextualType(type, name, nameType) {
|
|
75696
75694
|
return mapType(
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.6.0-pr-
|
|
5
|
+
"version": "5.6.0-pr-58824-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|