@typescript-deploys/pr-build 5.4.0-pr-56805-4 → 5.4.0-pr-56794-34

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.es5.d.ts CHANGED
@@ -1666,6 +1666,11 @@ type Capitalize<S extends string> = intrinsic;
1666
1666
  */
1667
1667
  type Uncapitalize<S extends string> = intrinsic;
1668
1668
 
1669
+ /**
1670
+ * Marker for non-inference type position
1671
+ */
1672
+ type NoInfer<T> = intrinsic;
1673
+
1669
1674
  /**
1670
1675
  * Marker for contextual 'this' type
1671
1676
  */
@@ -21,5 +21,3 @@ and limitations under the License.
21
21
  /// <reference lib="esnext.decorators" />
22
22
  /// <reference lib="esnext.disposable" />
23
23
  /// <reference lib="esnext.promise" />
24
- /// <reference lib="esnext.object" />
25
- /// <reference lib="esnext.collection" />
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.4";
21
- var version = `${versionMajorMinor}.0-insiders.20231218`;
21
+ var version = `${versionMajorMinor}.0-insiders.20231220`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -34047,7 +34047,7 @@ var libEntries = [
34047
34047
  ["es2023.array", "lib.es2023.array.d.ts"],
34048
34048
  ["es2023.collection", "lib.es2023.collection.d.ts"],
34049
34049
  ["esnext.array", "lib.es2023.array.d.ts"],
34050
- ["esnext.collection", "lib.esnext.collection.d.ts"],
34050
+ ["esnext.collection", "lib.es2023.collection.d.ts"],
34051
34051
  ["esnext.symbol", "lib.es2019.symbol.d.ts"],
34052
34052
  ["esnext.asynciterable", "lib.es2018.asynciterable.d.ts"],
34053
34053
  ["esnext.intl", "lib.esnext.intl.d.ts"],
@@ -34057,7 +34057,6 @@ var libEntries = [
34057
34057
  ["esnext.promise", "lib.esnext.promise.d.ts"],
34058
34058
  ["esnext.weakref", "lib.es2021.weakref.d.ts"],
34059
34059
  ["esnext.decorators", "lib.esnext.decorators.d.ts"],
34060
- ["esnext.object", "lib.esnext.object.d.ts"],
34061
34060
  ["decorators", "lib.decorators.d.ts"],
34062
34061
  ["decorators.legacy", "lib.decorators.legacy.d.ts"]
34063
34062
  ];
@@ -42973,10 +42972,10 @@ function tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, hos
42973
42972
  return ending !== 0 /* Minimal */ || value === processEnding(relativeToBaseUrl, [ending], compilerOptions, host);
42974
42973
  }
42975
42974
  }
42976
- function tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, exports, conditions, mode = 0 /* Exact */) {
42977
- if (typeof exports === "string") {
42975
+ function tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, exports2, conditions, mode = 0 /* Exact */) {
42976
+ if (typeof exports2 === "string") {
42978
42977
  const pathOrPattern = getNormalizedAbsolutePath(
42979
- combinePaths(packageDirectory, exports),
42978
+ combinePaths(packageDirectory, exports2),
42980
42979
  /*currentDirectory*/
42981
42980
  void 0
42982
42981
  );
@@ -42996,7 +42995,7 @@ function tryGetModuleNameFromExports(options, targetFilePath, packageDirectory,
42996
42995
  false
42997
42996
  );
42998
42997
  return { moduleFileToTry: getNormalizedAbsolutePath(
42999
- combinePaths(combinePaths(packageName, exports), fragment),
42998
+ combinePaths(combinePaths(packageName, exports2), fragment),
43000
42999
  /*currentDirectory*/
43001
43000
  void 0
43002
43001
  ) };
@@ -43016,23 +43015,23 @@ function tryGetModuleNameFromExports(options, targetFilePath, packageDirectory,
43016
43015
  }
43017
43016
  break;
43018
43017
  }
43019
- } else if (Array.isArray(exports)) {
43020
- return forEach(exports, (e) => tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, e, conditions));
43021
- } else if (typeof exports === "object" && exports !== null) {
43022
- if (allKeysStartWithDot(exports)) {
43023
- return forEach(getOwnKeys(exports), (k) => {
43018
+ } else if (Array.isArray(exports2)) {
43019
+ return forEach(exports2, (e) => tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, e, conditions));
43020
+ } else if (typeof exports2 === "object" && exports2 !== null) {
43021
+ if (allKeysStartWithDot(exports2)) {
43022
+ return forEach(getOwnKeys(exports2), (k) => {
43024
43023
  const subPackageName = getNormalizedAbsolutePath(
43025
43024
  combinePaths(packageName, k),
43026
43025
  /*currentDirectory*/
43027
43026
  void 0
43028
43027
  );
43029
43028
  const mode2 = endsWith(k, "/") ? 1 /* Directory */ : k.includes("*") ? 2 /* Pattern */ : 0 /* Exact */;
43030
- return tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, subPackageName, exports[k], conditions, mode2);
43029
+ return tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, subPackageName, exports2[k], conditions, mode2);
43031
43030
  });
43032
43031
  } else {
43033
- for (const key of getOwnKeys(exports)) {
43032
+ for (const key of getOwnKeys(exports2)) {
43034
43033
  if (key === "default" || conditions.includes(key) || isApplicableVersionedTypesKey(conditions, key)) {
43035
- const subTarget = exports[key];
43034
+ const subTarget = exports2[key];
43036
43035
  const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode);
43037
43036
  if (result) {
43038
43037
  return result;
@@ -43393,7 +43392,8 @@ var intrinsicTypeKinds = new Map(Object.entries({
43393
43392
  Uppercase: 0 /* Uppercase */,
43394
43393
  Lowercase: 1 /* Lowercase */,
43395
43394
  Capitalize: 2 /* Capitalize */,
43396
- Uncapitalize: 3 /* Uncapitalize */
43395
+ Uncapitalize: 3 /* Uncapitalize */,
43396
+ NoInfer: 4 /* NoInfer */
43397
43397
  }));
43398
43398
  var SymbolLinks = class {
43399
43399
  };
@@ -46124,13 +46124,13 @@ function createTypeChecker(host) {
46124
46124
  function reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName) {
46125
46125
  var _a, _b;
46126
46126
  const localSymbol = (_b = (_a = tryCast(moduleSymbol.valueDeclaration, canHaveLocals)) == null ? void 0 : _a.locals) == null ? void 0 : _b.get(name.escapedText);
46127
- const exports = moduleSymbol.exports;
46127
+ const exports2 = moduleSymbol.exports;
46128
46128
  if (localSymbol) {
46129
- const exportedEqualsSymbol = exports == null ? void 0 : exports.get("export=" /* ExportEquals */);
46129
+ const exportedEqualsSymbol = exports2 == null ? void 0 : exports2.get("export=" /* ExportEquals */);
46130
46130
  if (exportedEqualsSymbol) {
46131
46131
  getSymbolIfSameReference(exportedEqualsSymbol, localSymbol) ? reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) : error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName);
46132
46132
  } else {
46133
- const exportedSymbol = exports ? find(symbolsToArray(exports), (symbol) => !!getSymbolIfSameReference(symbol, localSymbol)) : void 0;
46133
+ const exportedSymbol = exports2 ? find(symbolsToArray(exports2), (symbol) => !!getSymbolIfSameReference(symbol, localSymbol)) : void 0;
46134
46134
  const diagnostic = exportedSymbol ? error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, moduleName, declarationName, symbolToString(exportedSymbol)) : error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, moduleName, declarationName);
46135
46135
  if (localSymbol.declarations) {
46136
46136
  addRelatedInfo(diagnostic, ...map(localSymbol.declarations, (decl, index) => createDiagnosticForNode(decl, index === 0 ? Diagnostics._0_is_declared_here : Diagnostics.and_here, declarationName)));
@@ -46994,19 +46994,19 @@ function createTypeChecker(host) {
46994
46994
  return symbolsToArray(getExportsOfModule(moduleSymbol));
46995
46995
  }
46996
46996
  function getExportsAndPropertiesOfModule(moduleSymbol) {
46997
- const exports = getExportsOfModuleAsArray(moduleSymbol);
46997
+ const exports2 = getExportsOfModuleAsArray(moduleSymbol);
46998
46998
  const exportEquals = resolveExternalModuleSymbol(moduleSymbol);
46999
46999
  if (exportEquals !== moduleSymbol) {
47000
47000
  const type = getTypeOfSymbol(exportEquals);
47001
47001
  if (shouldTreatPropertiesOfExternalModuleAsExports(type)) {
47002
- addRange(exports, getPropertiesOfType(type));
47002
+ addRange(exports2, getPropertiesOfType(type));
47003
47003
  }
47004
47004
  }
47005
- return exports;
47005
+ return exports2;
47006
47006
  }
47007
47007
  function forEachExportAndPropertyOfModule(moduleSymbol, cb) {
47008
- const exports = getExportsOfModule(moduleSymbol);
47009
- exports.forEach((symbol, key) => {
47008
+ const exports2 = getExportsOfModule(moduleSymbol);
47009
+ exports2.forEach((symbol, key) => {
47010
47010
  if (!isReservedMemberName(key)) {
47011
47011
  cb(symbol, key);
47012
47012
  }
@@ -47049,8 +47049,8 @@ function createTypeChecker(host) {
47049
47049
  function getExportsOfModule(moduleSymbol) {
47050
47050
  const links = getSymbolLinks(moduleSymbol);
47051
47051
  if (!links.resolvedExports) {
47052
- const { exports, typeOnlyExportStarMap } = getExportsOfModuleWorker(moduleSymbol);
47053
- links.resolvedExports = exports;
47052
+ const { exports: exports2, typeOnlyExportStarMap } = getExportsOfModuleWorker(moduleSymbol);
47053
+ links.resolvedExports = exports2;
47054
47054
  links.typeOnlyExportStarMap = typeOnlyExportStarMap;
47055
47055
  }
47056
47056
  return links.resolvedExports;
@@ -47084,12 +47084,12 @@ function createTypeChecker(host) {
47084
47084
  let typeOnlyExportStarMap;
47085
47085
  const nonTypeOnlyNames = /* @__PURE__ */ new Set();
47086
47086
  moduleSymbol = resolveExternalModuleSymbol(moduleSymbol);
47087
- const exports = visit(moduleSymbol) || emptySymbols;
47087
+ const exports2 = visit(moduleSymbol) || emptySymbols;
47088
47088
  if (typeOnlyExportStarMap) {
47089
47089
  nonTypeOnlyNames.forEach((name) => typeOnlyExportStarMap.delete(name));
47090
47090
  }
47091
47091
  return {
47092
- exports,
47092
+ exports: exports2,
47093
47093
  typeOnlyExportStarMap
47094
47094
  };
47095
47095
  function visit(symbol, exportStar, isTypeOnly) {
@@ -47278,12 +47278,12 @@ function createTypeChecker(host) {
47278
47278
  if (exportEquals && getSymbolIfSameReference(exportEquals, symbol)) {
47279
47279
  return container;
47280
47280
  }
47281
- const exports = getExportsOfSymbol(container);
47282
- const quick = exports.get(symbol.escapedName);
47281
+ const exports2 = getExportsOfSymbol(container);
47282
+ const quick = exports2.get(symbol.escapedName);
47283
47283
  if (quick && getSymbolIfSameReference(quick, symbol)) {
47284
47284
  return quick;
47285
47285
  }
47286
- return forEachEntry(exports, (exported) => {
47286
+ return forEachEntry(exports2, (exported) => {
47287
47287
  if (getSymbolIfSameReference(exported, symbol)) {
47288
47288
  return exported;
47289
47289
  }
@@ -48247,7 +48247,13 @@ function createTypeChecker(host) {
48247
48247
  return visitAndTransformType(type, (type2) => conditionalTypeToTypeNode(type2));
48248
48248
  }
48249
48249
  if (type.flags & 33554432 /* Substitution */) {
48250
- return typeToTypeNodeHelper(type.baseType, context);
48250
+ const typeNode = typeToTypeNodeHelper(type.baseType, context);
48251
+ const noInferSymbol = isNoInferType(type) && getGlobalTypeSymbol(
48252
+ "NoInfer",
48253
+ /*reportErrors*/
48254
+ false
48255
+ );
48256
+ return noInferSymbol ? symbolToTypeNode(noInferSymbol, context, 788968 /* Type */, [typeNode]) : typeNode;
48251
48257
  }
48252
48258
  return Debug.fail("Should be unreachable.");
48253
48259
  function conditionalTypeToTypeNode(type2) {
@@ -49532,8 +49538,8 @@ function createTypeChecker(host) {
49532
49538
  context.flags ^= 16777216 /* InInitialEntityName */;
49533
49539
  } else {
49534
49540
  if (parent && getExportsOfSymbol(parent)) {
49535
- const exports = getExportsOfSymbol(parent);
49536
- forEachEntry(exports, (ex, name) => {
49541
+ const exports2 = getExportsOfSymbol(parent);
49542
+ forEachEntry(exports2, (ex, name) => {
49537
49543
  if (getSymbolIfSameReference(ex, symbol2) && !isLateBoundName(name) && name !== "export=" /* ExportEquals */) {
49538
49544
  symbolName2 = unescapeLeadingUnderscores(name);
49539
49545
  return true;
@@ -50157,8 +50163,8 @@ function createTypeChecker(host) {
50157
50163
  return statements;
50158
50164
  }
50159
50165
  function mergeExportDeclarations(statements) {
50160
- const exports = filter(statements, (d) => isExportDeclaration(d) && !d.moduleSpecifier && !!d.exportClause && isNamedExports(d.exportClause));
50161
- if (length(exports) > 1) {
50166
+ const exports2 = filter(statements, (d) => isExportDeclaration(d) && !d.moduleSpecifier && !!d.exportClause && isNamedExports(d.exportClause));
50167
+ if (length(exports2) > 1) {
50162
50168
  const nonExports = filter(statements, (d) => !isExportDeclaration(d) || !!d.moduleSpecifier || !d.exportClause);
50163
50169
  statements = [
50164
50170
  ...nonExports,
@@ -50167,7 +50173,7 @@ function createTypeChecker(host) {
50167
50173
  void 0,
50168
50174
  /*isTypeOnly*/
50169
50175
  false,
50170
- factory.createNamedExports(flatMap(exports, (e) => cast(e.exportClause, isNamedExports).elements)),
50176
+ factory.createNamedExports(flatMap(exports2, (e) => cast(e.exportClause, isNamedExports).elements)),
50171
50177
  /*moduleSpecifier*/
50172
50178
  void 0
50173
50179
  )
@@ -50550,8 +50556,8 @@ function createTypeChecker(host) {
50550
50556
  );
50551
50557
  }
50552
50558
  function getNamespaceMembersForSerialization(symbol) {
50553
- const exports = getExportsOfSymbol(symbol);
50554
- return !exports ? [] : filter(arrayFrom(exports.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
50559
+ const exports2 = getExportsOfSymbol(symbol);
50560
+ return !exports2 ? [] : filter(arrayFrom(exports2.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
50555
50561
  }
50556
50562
  function isTypeOnlyNamespace(symbol) {
50557
50563
  return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */));
@@ -52353,19 +52359,19 @@ function createTypeChecker(host) {
52353
52359
  if (!isInJSFile(decl) || !init || !isObjectLiteralExpression(init) || init.properties.length) {
52354
52360
  return void 0;
52355
52361
  }
52356
- const exports = createSymbolTable();
52362
+ const exports2 = createSymbolTable();
52357
52363
  while (isBinaryExpression(decl) || isPropertyAccessExpression(decl)) {
52358
52364
  const s2 = getSymbolOfNode(decl);
52359
52365
  if ((_a = s2 == null ? void 0 : s2.exports) == null ? void 0 : _a.size) {
52360
- mergeSymbolTable(exports, s2.exports);
52366
+ mergeSymbolTable(exports2, s2.exports);
52361
52367
  }
52362
52368
  decl = isBinaryExpression(decl) ? decl.parent : decl.parent.parent;
52363
52369
  }
52364
52370
  const s = getSymbolOfNode(decl);
52365
52371
  if ((_b = s == null ? void 0 : s.exports) == null ? void 0 : _b.size) {
52366
- mergeSymbolTable(exports, s.exports);
52372
+ mergeSymbolTable(exports2, s.exports);
52367
52373
  }
52368
- const type = createAnonymousType(symbol, exports, emptyArray, emptyArray, emptyArray);
52374
+ const type = createAnonymousType(symbol, exports2, emptyArray, emptyArray, emptyArray);
52369
52375
  type.objectFlags |= 4096 /* JSLiteral */;
52370
52376
  return type;
52371
52377
  }
@@ -56151,8 +56157,11 @@ function createTypeChecker(host) {
56151
56157
  }
56152
56158
  function getTypeAliasInstantiation(symbol, typeArguments, aliasSymbol, aliasTypeArguments) {
56153
56159
  const type = getDeclaredTypeOfSymbol(symbol);
56154
- if (type === intrinsicMarkerType && intrinsicTypeKinds.has(symbol.escapedName) && typeArguments && typeArguments.length === 1) {
56155
- return getStringMappingType(symbol, typeArguments[0]);
56160
+ if (type === intrinsicMarkerType) {
56161
+ const typeKind = intrinsicTypeKinds.get(symbol.escapedName);
56162
+ if (typeKind !== void 0 && typeArguments && typeArguments.length === 1) {
56163
+ return typeKind === 4 /* NoInfer */ ? getNoInferType(typeArguments[0]) : getStringMappingType(symbol, typeArguments[0]);
56164
+ }
56156
56165
  }
56157
56166
  const links = getSymbolLinks(symbol);
56158
56167
  const typeParameters = links.typeParameters;
@@ -56306,10 +56315,19 @@ function createTypeChecker(host) {
56306
56315
  }
56307
56316
  return links.resolvedJSDocType;
56308
56317
  }
56318
+ function getNoInferType(type) {
56319
+ return isNoInferTargetType(type) ? getOrCreateSubstitutionType(type, unknownType) : type;
56320
+ }
56321
+ function isNoInferTargetType(type) {
56322
+ return !!(type.flags & 3145728 /* UnionOrIntersection */ && some(type.types, isNoInferTargetType) || type.flags & 33554432 /* Substitution */ && !isNoInferType(type) && isNoInferTargetType(type.baseType) || type.flags & 524288 /* Object */ && !isEmptyAnonymousObjectType(type) || type.flags & (465829888 /* Instantiable */ & ~33554432 /* Substitution */) && !isPatternLiteralType(type));
56323
+ }
56324
+ function isNoInferType(type) {
56325
+ return !!(type.flags & 33554432 /* Substitution */ && type.constraint.flags & 2 /* Unknown */);
56326
+ }
56309
56327
  function getSubstitutionType(baseType, constraint) {
56310
- if (constraint.flags & 3 /* AnyOrUnknown */ || constraint === baseType || baseType.flags & 1 /* Any */) {
56311
- return baseType;
56312
- }
56328
+ return constraint.flags & 3 /* AnyOrUnknown */ || constraint === baseType || baseType.flags & 1 /* Any */ ? baseType : getOrCreateSubstitutionType(baseType, constraint);
56329
+ }
56330
+ function getOrCreateSubstitutionType(baseType, constraint) {
56313
56331
  const id = `${getTypeId(baseType)}>${getTypeId(constraint)}`;
56314
56332
  const cached = substitutionTypes.get(id);
56315
56333
  if (cached) {
@@ -56322,7 +56340,7 @@ function createTypeChecker(host) {
56322
56340
  return result;
56323
56341
  }
56324
56342
  function getSubstitutionIntersection(substitutionType) {
56325
- return getIntersectionType([substitutionType.constraint, substitutionType.baseType]);
56343
+ return isNoInferType(substitutionType) ? substitutionType.baseType : getIntersectionType([substitutionType.constraint, substitutionType.baseType]);
56326
56344
  }
56327
56345
  function isUnaryTupleTypeNode(node) {
56328
56346
  return node.kind === 189 /* TupleType */ && node.elements.length === 1;
@@ -57843,7 +57861,7 @@ function createTypeChecker(host) {
57843
57861
  }
57844
57862
  function getIndexType(type, indexFlags = defaultIndexFlags) {
57845
57863
  type = getReducedType(type);
57846
- return shouldDeferIndexType(type, indexFlags) ? getIndexTypeForGenericType(type, indexFlags) : type.flags & 1048576 /* Union */ ? getIntersectionType(map(type.types, (t) => getIndexType(t, indexFlags))) : type.flags & 2097152 /* Intersection */ ? getUnionType(map(type.types, (t) => getIndexType(t, indexFlags))) : getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, indexFlags) : type === wildcardType ? wildcardType : type.flags & 2 /* Unknown */ ? neverType : type.flags & (1 /* Any */ | 131072 /* Never */) ? keyofConstraintType : getLiteralTypeFromProperties(type, (indexFlags & 2 /* NoIndexSignatures */ ? 128 /* StringLiteral */ : 402653316 /* StringLike */) | (indexFlags & 1 /* StringsOnly */ ? 0 : 296 /* NumberLike */ | 12288 /* ESSymbolLike */), indexFlags === defaultIndexFlags);
57864
+ return isNoInferType(type) ? getNoInferType(getIndexType(type.baseType, indexFlags)) : shouldDeferIndexType(type, indexFlags) ? getIndexTypeForGenericType(type, indexFlags) : type.flags & 1048576 /* Union */ ? getIntersectionType(map(type.types, (t) => getIndexType(t, indexFlags))) : type.flags & 2097152 /* Intersection */ ? getUnionType(map(type.types, (t) => getIndexType(t, indexFlags))) : getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, indexFlags) : type === wildcardType ? wildcardType : type.flags & 2 /* Unknown */ ? neverType : type.flags & (1 /* Any */ | 131072 /* Never */) ? keyofConstraintType : getLiteralTypeFromProperties(type, (indexFlags & 2 /* NoIndexSignatures */ ? 128 /* StringLiteral */ : 402653316 /* StringLike */) | (indexFlags & 1 /* StringsOnly */ ? 0 : 296 /* NumberLike */ | 12288 /* ESSymbolLike */), indexFlags === defaultIndexFlags);
57847
57865
  }
57848
57866
  function getExtractStringType(type) {
57849
57867
  if (keyofStringsOnly) {
@@ -59580,6 +59598,9 @@ function createTypeChecker(host) {
59580
59598
  }
59581
59599
  if (flags & 33554432 /* Substitution */) {
59582
59600
  const newBaseType = instantiateType(type.baseType, mapper);
59601
+ if (isNoInferType(type)) {
59602
+ return getNoInferType(newBaseType);
59603
+ }
59583
59604
  const newConstraint = instantiateType(type.constraint, mapper);
59584
59605
  if (newBaseType.flags & 8650752 /* TypeVariable */ && isGenericType(newConstraint)) {
59585
59606
  return getSubstitutionType(newBaseType, newConstraint);
@@ -64330,7 +64351,7 @@ function createTypeChecker(host) {
64330
64351
  let expandingFlags = 0 /* None */;
64331
64352
  inferFromTypes(originalSource, originalTarget);
64332
64353
  function inferFromTypes(source, target) {
64333
- if (!couldContainTypeVariables(target)) {
64354
+ if (!couldContainTypeVariables(target) || isNoInferType(target)) {
64334
64355
  return;
64335
64356
  }
64336
64357
  if (source === wildcardType || source === blockedStringType) {
@@ -64379,6 +64400,9 @@ function createTypeChecker(host) {
64379
64400
  }
64380
64401
  }
64381
64402
  if (target.flags & (8388608 /* IndexedAccess */ | 33554432 /* Substitution */)) {
64403
+ if (isNoInferType(target)) {
64404
+ return;
64405
+ }
64382
64406
  target = getActualTypeVariable(target);
64383
64407
  }
64384
64408
  if (target.flags & 8650752 /* TypeVariable */) {
@@ -69538,8 +69562,8 @@ function createTypeChecker(host) {
69538
69562
  }
69539
69563
  function getJsxType(name, location) {
69540
69564
  const namespace = getJsxNamespaceAt(location);
69541
- const exports = namespace && getExportsOfSymbol(namespace);
69542
- const typeSymbol = exports && getSymbol(exports, name, 788968 /* Type */);
69565
+ const exports2 = namespace && getExportsOfSymbol(namespace);
69566
+ const typeSymbol = exports2 && getSymbol(exports2, name, 788968 /* Type */);
69543
69567
  return typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType;
69544
69568
  }
69545
69569
  function getIntrinsicTagSymbol(node) {
@@ -72369,8 +72393,8 @@ function createTypeChecker(host) {
72369
72393
  }
72370
72394
  function createSignatureForJSXIntrinsic(node, result) {
72371
72395
  const namespace = getJsxNamespaceAt(node);
72372
- const exports = namespace && getExportsOfSymbol(namespace);
72373
- const typeSymbol = exports && getSymbol(exports, JsxNames.Element, 788968 /* Type */);
72396
+ const exports2 = namespace && getExportsOfSymbol(namespace);
72397
+ const typeSymbol = exports2 && getSymbol(exports2, JsxNames.Element, 788968 /* Type */);
72374
72398
  const returnNode = typeSymbol && nodeBuilder.symbolToEntityName(typeSymbol, 788968 /* Type */, node);
72375
72399
  const declaration = factory.createFunctionTypeNode(
72376
72400
  /*typeParameters*/
@@ -81123,9 +81147,9 @@ function createTypeChecker(host) {
81123
81147
  error(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements);
81124
81148
  }
81125
81149
  }
81126
- const exports = getExportsOfModule(moduleSymbol);
81127
- if (exports) {
81128
- exports.forEach(({ declarations, flags }, id) => {
81150
+ const exports2 = getExportsOfModule(moduleSymbol);
81151
+ if (exports2) {
81152
+ exports2.forEach(({ declarations, flags }, id) => {
81129
81153
  if (id === "__export") {
81130
81154
  return;
81131
81155
  }
@@ -82990,8 +83014,8 @@ function createTypeChecker(host) {
82990
83014
  return false;
82991
83015
  if (importTarget === file)
82992
83016
  return false;
82993
- const exports = getExportsOfModule(file.symbol);
82994
- for (const s of arrayFrom(exports.values())) {
83017
+ const exports2 = getExportsOfModule(file.symbol);
83018
+ for (const s of arrayFrom(exports2.values())) {
82995
83019
  if (s.mergeId) {
82996
83020
  const merged = getMergedSymbol(s);
82997
83021
  if (merged.declarations) {
@@ -106287,7 +106311,7 @@ function transformSystemModule(context) {
106287
106311
  const exportStarFunction = factory2.createUniqueName("exportStar");
106288
106312
  const m = factory2.createIdentifier("m");
106289
106313
  const n = factory2.createIdentifier("n");
106290
- const exports = factory2.createIdentifier("exports");
106314
+ const exports2 = factory2.createIdentifier("exports");
106291
106315
  let condition = factory2.createStrictInequality(n, factory2.createStringLiteral("default"));
106292
106316
  if (localNames) {
106293
106317
  condition = factory2.createLogicalAnd(
@@ -106326,7 +106350,7 @@ function transformSystemModule(context) {
106326
106350
  void 0,
106327
106351
  factory2.createVariableDeclarationList([
106328
106352
  factory2.createVariableDeclaration(
106329
- exports,
106353
+ exports2,
106330
106354
  /*exclamationToken*/
106331
106355
  void 0,
106332
106356
  /*type*/
@@ -106346,7 +106370,7 @@ function transformSystemModule(context) {
106346
106370
  condition,
106347
106371
  factory2.createExpressionStatement(
106348
106372
  factory2.createAssignment(
106349
- factory2.createElementAccessExpression(exports, n),
106373
+ factory2.createElementAccessExpression(exports2, n),
106350
106374
  factory2.createElementAccessExpression(m, n)
106351
106375
  )
106352
106376
  )
@@ -106360,7 +106384,7 @@ function transformSystemModule(context) {
106360
106384
  exportFunction,
106361
106385
  /*typeArguments*/
106362
106386
  void 0,
106363
- [exports]
106387
+ [exports2]
106364
106388
  )
106365
106389
  )
106366
106390
  ],