@typescript-deploys/pr-build 5.6.0-pr-58829-3 → 5.6.0-pr-58825-5

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 CHANGED
@@ -7551,8 +7551,6 @@ var Diagnostics = {
7551
7551
  Default_exports_can_t_be_inferred_with_isolatedDeclarations: diag(9037, 1 /* Error */, "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037", "Default exports can't be inferred with --isolatedDeclarations."),
7552
7552
  Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations: diag(9038, 1 /* Error */, "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038", "Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),
7553
7553
  Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations: diag(9039, 1 /* Error */, "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039", "Type containing private name '{0}' can't be used with --isolatedDeclarations."),
7554
- keyof_type_must_have_an_operand_type: diag(9040, 1 /* Error */, "keyof_type_must_have_an_operand_type_9040", "`keyof` type must have an operand type."),
7555
- A_satisfies_keyof_computed_property_name_must_be_exactly_a_single_string_number_or_unique_symbol_literal_type: diag(9041, 1 /* Error */, "A_satisfies_keyof_computed_property_name_must_be_exactly_a_single_string_number_or_unique_symbol_lit_9041", "A `satisfies keyof` computed property name must be exactly a single string, number, or unique symbol literal type."),
7556
7554
  JSX_attributes_must_only_be_assigned_a_non_empty_expression: diag(17e3, 1 /* Error */, "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000", "JSX attributes must only be assigned a non-empty 'expression'."),
7557
7555
  JSX_elements_cannot_have_multiple_attributes_with_the_same_name: diag(17001, 1 /* Error */, "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001", "JSX elements cannot have multiple attributes with the same name."),
7558
7556
  Expected_corresponding_JSX_closing_tag_for_0: diag(17002, 1 /* Error */, "Expected_corresponding_JSX_closing_tag_for_0_17002", "Expected corresponding JSX closing tag for '{0}'."),
@@ -19368,9 +19366,6 @@ function hasInferredType(node) {
19368
19366
  return false;
19369
19367
  }
19370
19368
  }
19371
- function isSatisfiesKeyofExpression(node) {
19372
- return node.kind === 238 /* SatisfiesExpression */ && node.type.kind === 143 /* KeyOfKeyword */ && isEntityNameExpression(node.expression);
19373
- }
19374
19369
 
19375
19370
  // src/compiler/factory/baseNodeFactory.ts
19376
19371
  function createBaseNodeFactory() {
@@ -30557,8 +30552,7 @@ var Parser;
30557
30552
  function parseTypeOperator(operator) {
30558
30553
  const pos = getNodePos();
30559
30554
  parseExpected(operator);
30560
- const arg = operator !== 143 /* KeyOfKeyword */ || isStartOfType() ? parseTypeOperatorOrHigher() : void 0;
30561
- return finishNode(arg ? factory2.createTypeOperatorNode(operator, arg) : factory2.createKeywordTypeNode(143 /* KeyOfKeyword */), pos);
30555
+ return finishNode(factory2.createTypeOperatorNode(operator, parseTypeOperatorOrHigher()), pos);
30562
30556
  }
30563
30557
  function tryParseConstraintOfInferType() {
30564
30558
  if (parseOptional(96 /* ExtendsKeyword */)) {
@@ -49165,7 +49159,7 @@ function createTypeChecker(host) {
49165
49159
  }
49166
49160
  function getMeaningOfEntityNameReference(entityName) {
49167
49161
  let meaning;
49168
- if (entityName.parent.kind === 186 /* TypeQuery */ || entityName.parent.kind === 233 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 167 /* ComputedPropertyName */ || entityName.parent.kind === 182 /* TypePredicate */ && entityName.parent.parameterName === entityName || isSatisfiesKeyofExpression(entityName.parent)) {
49162
+ if (entityName.parent.kind === 186 /* TypeQuery */ || entityName.parent.kind === 233 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 167 /* ComputedPropertyName */ || entityName.parent.kind === 182 /* TypePredicate */ && entityName.parent.parameterName === entityName) {
49169
49163
  meaning = 111551 /* Value */ | 1048576 /* ExportValue */;
49170
49164
  } else if (entityName.kind === 166 /* QualifiedName */ || entityName.kind === 211 /* PropertyAccessExpression */ || entityName.parent.kind === 271 /* ImportEqualsDeclaration */ || entityName.parent.kind === 166 /* QualifiedName */ && entityName.parent.left === entityName || entityName.parent.kind === 211 /* PropertyAccessExpression */ && entityName.parent.expression === entityName || entityName.parent.kind === 212 /* ElementAccessExpression */ && entityName.parent.expression === entityName) {
49171
49165
  meaning = 1920 /* Namespace */;
@@ -50278,7 +50272,7 @@ function createTypeChecker(host) {
50278
50272
  trackComputedName(name.argumentExpression, saveEnclosingDeclaration, context);
50279
50273
  }
50280
50274
  } else {
50281
- trackComputedName(isEntityNameExpression(decl.name.expression) ? decl.name.expression : decl.name.expression.expression, saveEnclosingDeclaration, context);
50275
+ trackComputedName(decl.name.expression, saveEnclosingDeclaration, context);
50282
50276
  }
50283
50277
  }
50284
50278
  } else {
@@ -50775,7 +50769,7 @@ function createTypeChecker(host) {
50775
50769
  return elideInitializerAndSetEmitFlags(node);
50776
50770
  function elideInitializerAndSetEmitFlags(node2) {
50777
50771
  if (context.tracker.canTrackSymbol && isComputedPropertyName(node2) && isLateBindableName(node2)) {
50778
- trackComputedName(isEntityNameExpression(node2.expression) ? node2.expression : node2.expression.expression, context.enclosingDeclaration, context);
50772
+ trackComputedName(node2.expression, context.enclosingDeclaration, context);
50779
50773
  }
50780
50774
  let visited = visitEachChild(
50781
50775
  node2,
@@ -55725,10 +55719,7 @@ function createTypeChecker(host) {
55725
55719
  if (!isComputedPropertyName(node) && !isElementAccessExpression(node)) {
55726
55720
  return false;
55727
55721
  }
55728
- let expr = isComputedPropertyName(node) ? node.expression : node.argumentExpression;
55729
- if (isSatisfiesExpression(expr) && expr.type.kind === 143 /* KeyOfKeyword */) {
55730
- expr = expr.expression;
55731
- }
55722
+ const expr = isComputedPropertyName(node) ? node.expression : node.argumentExpression;
55732
55723
  return isEntityNameExpression(expr) && isTypeUsableAsPropertyName(isComputedPropertyName(node) ? checkComputedPropertyName(node) : checkExpressionCached(expr));
55733
55724
  }
55734
55725
  function isLateBoundName(name) {
@@ -61094,13 +61085,6 @@ function createTypeChecker(host) {
61094
61085
  type.escapedName = `__@${type.symbol.escapedName}@${getSymbolId(type.symbol)}`;
61095
61086
  return type;
61096
61087
  }
61097
- function getUniqueESSymbolTypeForSymbol(symbol) {
61098
- const links = getSymbolLinks(symbol);
61099
- if (!links.uniqueESSymbolType) {
61100
- links.uniqueESSymbolType = createUniqueESSymbolType(symbol);
61101
- }
61102
- return links.uniqueESSymbolType;
61103
- }
61104
61088
  function getESSymbolLikeTypeForNode(node) {
61105
61089
  if (isInJSFile(node) && isJSDocTypeExpression(node)) {
61106
61090
  const host2 = getJSDocHost(node);
@@ -61111,7 +61095,8 @@ function createTypeChecker(host) {
61111
61095
  if (isValidESSymbolDeclaration(node)) {
61112
61096
  const symbol = isCommonJsExportPropertyAssignment(node) ? getSymbolOfNode(node.left) : getSymbolOfNode(node);
61113
61097
  if (symbol) {
61114
- return getUniqueESSymbolTypeForSymbol(symbol);
61098
+ const links = getSymbolLinks(symbol);
61099
+ return links.uniqueESSymbolType || (links.uniqueESSymbolType = createUniqueESSymbolType(symbol));
61115
61100
  }
61116
61101
  }
61117
61102
  return esSymbolType;
@@ -61179,12 +61164,6 @@ function createTypeChecker(host) {
61179
61164
  !!node.questionToken
61180
61165
  ));
61181
61166
  }
61182
- function getTypeFromKeyofKeywordTypeNode(node) {
61183
- if (!isSatisfiesExpression(node.parent) || !isComputedPropertyName(node.parent.parent)) {
61184
- error(node, Diagnostics.keyof_type_must_have_an_operand_type);
61185
- }
61186
- return stringNumberSymbolType;
61187
- }
61188
61167
  function getTypeFromTypeNode(node) {
61189
61168
  return getConditionalFlowTypeOfType(getTypeFromTypeNodeWorker(node), node);
61190
61169
  }
@@ -61280,8 +61259,6 @@ function createTypeChecker(host) {
61280
61259
  case 211 /* PropertyAccessExpression */:
61281
61260
  const symbol = getSymbolAtLocation(node);
61282
61261
  return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType;
61283
- case 143 /* KeyOfKeyword */:
61284
- return getTypeFromKeyofKeywordTypeNode(node);
61285
61262
  default:
61286
61263
  return errorType;
61287
61264
  }
@@ -73466,20 +73443,7 @@ function createTypeChecker(host) {
73466
73443
  }
73467
73444
  }
73468
73445
  const indexedAccessType = getIndexedAccessTypeOrUndefined(objectType, effectiveIndexType, accessFlags, node) || errorType;
73469
- const result = checkIndexedAccessIndexType(getFlowTypeOfAccessExpression(node, getNodeLinks(node).resolvedSymbol, indexedAccessType, indexExpression, checkMode), node);
73470
- if (!isErrorType(result)) {
73471
- return result;
73472
- }
73473
- if (isEntityNameExpression(indexExpression)) {
73474
- const fallback = getResolvedEntityNameUniqueSymbolType(indexExpression);
73475
- if (fallback) {
73476
- const indexedAccessType2 = getIndexedAccessTypeOrUndefined(objectType, fallback, accessFlags) || errorType;
73477
- if (!isErrorType(indexedAccessType2) && !(indexedAccessType2.flags & 8388608 /* IndexedAccess */ && indexedAccessType2.objectType === objectType && indexedAccessType2.indexType === fallback)) {
73478
- return getFlowTypeOfAccessExpression(node, getNodeLinks(node).resolvedSymbol, indexedAccessType2, indexExpression, checkMode);
73479
- }
73480
- }
73481
- }
73482
- return result;
73446
+ return checkIndexedAccessIndexType(getFlowTypeOfAccessExpression(node, getNodeLinks(node).resolvedSymbol, indexedAccessType, indexExpression, checkMode), node);
73483
73447
  }
73484
73448
  function callLikeExpressionMayHaveTypeArguments(node) {
73485
73449
  return isCallOrNewExpression(node) || isTaggedTemplateExpression(node) || isJsxOpeningLikeElement(node);
@@ -75727,49 +75691,13 @@ function createTypeChecker(host) {
75727
75691
  checkSourceElement(node.type);
75728
75692
  return checkSatisfiesExpressionWorker(node.expression, node.type);
75729
75693
  }
75730
- function getResolvedEntityNameUniqueSymbolType(expression) {
75731
- const links = getNodeLinks(expression);
75732
- if (!links.uniqueSymbollFallback) {
75733
- let resolved = resolveEntityName(
75734
- expression,
75735
- 111551 /* Value */ | 1048576 /* ExportValue */,
75736
- /*ignoreErrors*/
75737
- true
75738
- );
75739
- if (!resolved || resolved === unknownSymbol) {
75740
- resolved = resolveEntityName(
75741
- expression,
75742
- 111551 /* Value */ | 1048576 /* ExportValue */,
75743
- /*ignoreErrors*/
75744
- true,
75745
- /*dontResolveAlias*/
75746
- true
75747
- );
75748
- }
75749
- if (resolved) {
75750
- links.uniqueSymbollFallback = getUniqueESSymbolTypeForSymbol(resolved);
75751
- } else {
75752
- links.uniqueSymbollFallback = false;
75753
- }
75754
- }
75755
- return links.uniqueSymbollFallback || void 0;
75756
- }
75757
75694
  function checkSatisfiesExpressionWorker(expression, target, checkMode) {
75758
75695
  const exprType = checkExpression(expression, checkMode);
75759
- const errorNode = findAncestor(target.parent, (n) => n.kind === 238 /* SatisfiesExpression */ || n.kind === 350 /* JSDocSatisfiesTag */);
75760
- if (target.kind === 143 /* KeyOfKeyword */ && isComputedPropertyName(expression.parent.parent)) {
75761
- if (!(exprType.flags & 8576 /* StringOrNumberLiteralOrUnique */)) {
75762
- error(expression, Diagnostics.A_satisfies_keyof_computed_property_name_must_be_exactly_a_single_string_number_or_unique_symbol_literal_type);
75763
- if (isEntityNameExpression(expression)) {
75764
- return getResolvedEntityNameUniqueSymbolType(expression) || exprType;
75765
- }
75766
- }
75767
- return exprType;
75768
- }
75769
75696
  const targetType = getTypeFromTypeNode(target);
75770
75697
  if (isErrorType(targetType)) {
75771
75698
  return targetType;
75772
75699
  }
75700
+ const errorNode = findAncestor(target.parent, (n) => n.kind === 238 /* SatisfiesExpression */ || n.kind === 350 /* JSDocSatisfiesTag */);
75773
75701
  checkTypeAssignableToAndOptionallyElaborate(exprType, targetType, errorNode, expression, Diagnostics.Type_0_does_not_satisfy_the_expected_type_1);
75774
75702
  return exprType;
75775
75703
  }
@@ -111595,7 +111523,7 @@ function transformDeclarations(context) {
111595
111523
  if (isDeclarationAndNotVisible(input)) return;
111596
111524
  if (hasDynamicName(input)) {
111597
111525
  if (isolatedDeclarations) {
111598
- if (!resolver.isDefinitelyReferenceToGlobalSymbolObject(input.name.expression) && !isSatisfiesKeyofExpression(input.name.expression)) {
111526
+ if (!resolver.isDefinitelyReferenceToGlobalSymbolObject(input.name.expression)) {
111599
111527
  if (isClassDeclaration(input.parent) || isObjectLiteralExpression(input.parent)) {
111600
111528
  context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));
111601
111529
  return;
@@ -111607,7 +111535,7 @@ function transformDeclarations(context) {
111607
111535
  return;
111608
111536
  }
111609
111537
  }
111610
- } else if (!resolver.isLateBound(getParseTreeNode(input)) || !(isEntityNameExpression(input.name.expression) || isSatisfiesKeyofExpression(input.name.expression))) {
111538
+ } else if (!resolver.isLateBound(getParseTreeNode(input)) || !isEntityNameExpression(input.name.expression)) {
111611
111539
  return;
111612
111540
  }
111613
111541
  }
@@ -111878,10 +111806,7 @@ function transformDeclarations(context) {
111878
111806
  return cleanup(visitEachChild(input, visitDeclarationSubtree, context));
111879
111807
  function cleanup(returnValue) {
111880
111808
  if (returnValue && canProduceDiagnostic && hasDynamicName(input)) {
111881
- const updated = checkName(input, returnValue);
111882
- if (updated) {
111883
- returnValue = updated;
111884
- }
111809
+ checkName(input);
111885
111810
  }
111886
111811
  if (isEnclosingDeclaration(input)) {
111887
111812
  enclosingDeclaration = previousEnclosingDeclaration;
@@ -112390,7 +112315,7 @@ function transformDeclarations(context) {
112390
112315
  }
112391
112316
  }
112392
112317
  }
112393
- function checkName(node, returnValue) {
112318
+ function checkName(node) {
112394
112319
  let oldDiag;
112395
112320
  if (!suppressNewDiagnosticContexts) {
112396
112321
  oldDiag = getSymbolAccessibilityDiagnostic;
@@ -112400,21 +112325,11 @@ function transformDeclarations(context) {
112400
112325
  Debug.assert(hasDynamicName(node));
112401
112326
  const decl = node;
112402
112327
  const entityName = decl.name.expression;
112403
- const nameExpr = isEntityNameExpression(entityName) ? entityName : entityName.expression;
112404
- checkEntityNameVisibility(nameExpr, enclosingDeclaration);
112405
- let result = returnValue;
112406
- if (returnValue && nameExpr !== entityName) {
112407
- const updated = factory2.updateComputedPropertyName(decl.name, nameExpr);
112408
- result = factory2.cloneNode(returnValue);
112409
- result.name = updated;
112410
- }
112328
+ checkEntityNameVisibility(entityName, enclosingDeclaration);
112411
112329
  if (!suppressNewDiagnosticContexts) {
112412
112330
  getSymbolAccessibilityDiagnostic = oldDiag;
112413
112331
  }
112414
112332
  errorNameNode = void 0;
112415
- if (result !== returnValue) {
112416
- return result;
112417
- }
112418
112333
  }
112419
112334
  function shouldStripInternal(node) {
112420
112335
  return !!stripInternal && !!node && isInternalDeclaration(node, currentSourceFile);
@@ -119069,7 +118984,8 @@ function getConfigFileParsingDiagnostics(configFileParseResult) {
119069
118984
  return configFileParseResult.options.configFile ? [...configFileParseResult.options.configFile.parseDiagnostics, ...configFileParseResult.errors] : configFileParseResult.errors;
119070
118985
  }
119071
118986
  function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options) {
119072
- return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
118987
+ const moduleKind = getEmitModuleKind(options);
118988
+ return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ || pathContainsNodeModules(fileName)) && fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
119073
118989
  function lookupFromPackageJson() {
119074
118990
  const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options);
119075
118991
  const packageJsonLocations = [];
@@ -4190,7 +4190,7 @@ declare namespace ts {
4190
4190
  | SyntaxKind.WithKeyword
4191
4191
  | SyntaxKind.YieldKeyword;
4192
4192
  type ModifierSyntaxKind = SyntaxKind.AbstractKeyword | SyntaxKind.AccessorKeyword | SyntaxKind.AsyncKeyword | SyntaxKind.ConstKeyword | SyntaxKind.DeclareKeyword | SyntaxKind.DefaultKeyword | SyntaxKind.ExportKeyword | SyntaxKind.InKeyword | SyntaxKind.PrivateKeyword | SyntaxKind.ProtectedKeyword | SyntaxKind.PublicKeyword | SyntaxKind.ReadonlyKeyword | SyntaxKind.OutKeyword | SyntaxKind.OverrideKeyword | SyntaxKind.StaticKeyword;
4193
- type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword | SyntaxKind.KeyOfKeyword;
4193
+ type KeywordTypeSyntaxKind = SyntaxKind.AnyKeyword | SyntaxKind.BigIntKeyword | SyntaxKind.BooleanKeyword | SyntaxKind.IntrinsicKeyword | SyntaxKind.NeverKeyword | SyntaxKind.NumberKeyword | SyntaxKind.ObjectKeyword | SyntaxKind.StringKeyword | SyntaxKind.SymbolKeyword | SyntaxKind.UndefinedKeyword | SyntaxKind.UnknownKeyword | SyntaxKind.VoidKeyword;
4194
4194
  type TokenSyntaxKind = SyntaxKind.Unknown | SyntaxKind.EndOfFileToken | TriviaSyntaxKind | LiteralSyntaxKind | PseudoLiteralSyntaxKind | PunctuationSyntaxKind | SyntaxKind.Identifier | KeywordSyntaxKind;
4195
4195
  type JsxTokenSyntaxKind = SyntaxKind.LessThanSlashToken | SyntaxKind.EndOfFileToken | SyntaxKind.ConflictMarkerTrivia | SyntaxKind.JsxText | SyntaxKind.JsxTextAllWhiteSpaces | SyntaxKind.OpenBraceToken | SyntaxKind.LessThanToken;
4196
4196
  type JSDocSyntaxKind = SyntaxKind.EndOfFileToken | SyntaxKind.WhitespaceTrivia | SyntaxKind.AtToken | SyntaxKind.NewLineTrivia | SyntaxKind.AsteriskToken | SyntaxKind.OpenBraceToken | SyntaxKind.CloseBraceToken | SyntaxKind.LessThanToken | SyntaxKind.GreaterThanToken | SyntaxKind.OpenBracketToken | SyntaxKind.CloseBracketToken | SyntaxKind.OpenParenToken | SyntaxKind.CloseParenToken | SyntaxKind.EqualsToken | SyntaxKind.CommaToken | SyntaxKind.DotToken | SyntaxKind.Identifier | SyntaxKind.BacktickToken | SyntaxKind.HashToken | SyntaxKind.Unknown | KeywordSyntaxKind;
package/lib/typescript.js CHANGED
@@ -1751,7 +1751,6 @@ __export(typescript_exports, {
1751
1751
  isRootedDiskPath: () => isRootedDiskPath,
1752
1752
  isSameEntityName: () => isSameEntityName,
1753
1753
  isSatisfiesExpression: () => isSatisfiesExpression,
1754
- isSatisfiesKeyofExpression: () => isSatisfiesKeyofExpression,
1755
1754
  isScopeMarker: () => isScopeMarker,
1756
1755
  isSemicolonClassElement: () => isSemicolonClassElement,
1757
1756
  isSetAccessor: () => isSetAccessor,
@@ -11139,8 +11138,6 @@ var Diagnostics = {
11139
11138
  Default_exports_can_t_be_inferred_with_isolatedDeclarations: diag(9037, 1 /* Error */, "Default_exports_can_t_be_inferred_with_isolatedDeclarations_9037", "Default exports can't be inferred with --isolatedDeclarations."),
11140
11139
  Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations: diag(9038, 1 /* Error */, "Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations_9038", "Computed property names on class or object literals cannot be inferred with --isolatedDeclarations."),
11141
11140
  Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations: diag(9039, 1 /* Error */, "Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations_9039", "Type containing private name '{0}' can't be used with --isolatedDeclarations."),
11142
- keyof_type_must_have_an_operand_type: diag(9040, 1 /* Error */, "keyof_type_must_have_an_operand_type_9040", "`keyof` type must have an operand type."),
11143
- A_satisfies_keyof_computed_property_name_must_be_exactly_a_single_string_number_or_unique_symbol_literal_type: diag(9041, 1 /* Error */, "A_satisfies_keyof_computed_property_name_must_be_exactly_a_single_string_number_or_unique_symbol_lit_9041", "A `satisfies keyof` computed property name must be exactly a single string, number, or unique symbol literal type."),
11144
11141
  JSX_attributes_must_only_be_assigned_a_non_empty_expression: diag(17e3, 1 /* Error */, "JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000", "JSX attributes must only be assigned a non-empty 'expression'."),
11145
11142
  JSX_elements_cannot_have_multiple_attributes_with_the_same_name: diag(17001, 1 /* Error */, "JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001", "JSX elements cannot have multiple attributes with the same name."),
11146
11143
  Expected_corresponding_JSX_closing_tag_for_0: diag(17002, 1 /* Error */, "Expected_corresponding_JSX_closing_tag_for_0_17002", "Expected corresponding JSX closing tag for '{0}'."),
@@ -23616,9 +23613,6 @@ function hasInferredType(node) {
23616
23613
  return false;
23617
23614
  }
23618
23615
  }
23619
- function isSatisfiesKeyofExpression(node) {
23620
- return node.kind === 238 /* SatisfiesExpression */ && node.type.kind === 143 /* KeyOfKeyword */ && isEntityNameExpression(node.expression);
23621
- }
23622
23616
 
23623
23617
  // src/compiler/factory/baseNodeFactory.ts
23624
23618
  function createBaseNodeFactory() {
@@ -34982,8 +34976,7 @@ var Parser;
34982
34976
  function parseTypeOperator(operator) {
34983
34977
  const pos = getNodePos();
34984
34978
  parseExpected(operator);
34985
- const arg = operator !== 143 /* KeyOfKeyword */ || isStartOfType() ? parseTypeOperatorOrHigher() : void 0;
34986
- return finishNode(arg ? factory2.createTypeOperatorNode(operator, arg) : factory2.createKeywordTypeNode(143 /* KeyOfKeyword */), pos);
34979
+ return finishNode(factory2.createTypeOperatorNode(operator, parseTypeOperatorOrHigher()), pos);
34987
34980
  }
34988
34981
  function tryParseConstraintOfInferType() {
34989
34982
  if (parseOptional(96 /* ExtendsKeyword */)) {
@@ -53939,7 +53932,7 @@ function createTypeChecker(host) {
53939
53932
  }
53940
53933
  function getMeaningOfEntityNameReference(entityName) {
53941
53934
  let meaning;
53942
- if (entityName.parent.kind === 186 /* TypeQuery */ || entityName.parent.kind === 233 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 167 /* ComputedPropertyName */ || entityName.parent.kind === 182 /* TypePredicate */ && entityName.parent.parameterName === entityName || isSatisfiesKeyofExpression(entityName.parent)) {
53935
+ if (entityName.parent.kind === 186 /* TypeQuery */ || entityName.parent.kind === 233 /* ExpressionWithTypeArguments */ && !isPartOfTypeNode(entityName.parent) || entityName.parent.kind === 167 /* ComputedPropertyName */ || entityName.parent.kind === 182 /* TypePredicate */ && entityName.parent.parameterName === entityName) {
53943
53936
  meaning = 111551 /* Value */ | 1048576 /* ExportValue */;
53944
53937
  } else if (entityName.kind === 166 /* QualifiedName */ || entityName.kind === 211 /* PropertyAccessExpression */ || entityName.parent.kind === 271 /* ImportEqualsDeclaration */ || entityName.parent.kind === 166 /* QualifiedName */ && entityName.parent.left === entityName || entityName.parent.kind === 211 /* PropertyAccessExpression */ && entityName.parent.expression === entityName || entityName.parent.kind === 212 /* ElementAccessExpression */ && entityName.parent.expression === entityName) {
53945
53938
  meaning = 1920 /* Namespace */;
@@ -55052,7 +55045,7 @@ function createTypeChecker(host) {
55052
55045
  trackComputedName(name.argumentExpression, saveEnclosingDeclaration, context);
55053
55046
  }
55054
55047
  } else {
55055
- trackComputedName(isEntityNameExpression(decl.name.expression) ? decl.name.expression : decl.name.expression.expression, saveEnclosingDeclaration, context);
55048
+ trackComputedName(decl.name.expression, saveEnclosingDeclaration, context);
55056
55049
  }
55057
55050
  }
55058
55051
  } else {
@@ -55549,7 +55542,7 @@ function createTypeChecker(host) {
55549
55542
  return elideInitializerAndSetEmitFlags(node);
55550
55543
  function elideInitializerAndSetEmitFlags(node2) {
55551
55544
  if (context.tracker.canTrackSymbol && isComputedPropertyName(node2) && isLateBindableName(node2)) {
55552
- trackComputedName(isEntityNameExpression(node2.expression) ? node2.expression : node2.expression.expression, context.enclosingDeclaration, context);
55545
+ trackComputedName(node2.expression, context.enclosingDeclaration, context);
55553
55546
  }
55554
55547
  let visited = visitEachChild(
55555
55548
  node2,
@@ -60499,10 +60492,7 @@ function createTypeChecker(host) {
60499
60492
  if (!isComputedPropertyName(node) && !isElementAccessExpression(node)) {
60500
60493
  return false;
60501
60494
  }
60502
- let expr = isComputedPropertyName(node) ? node.expression : node.argumentExpression;
60503
- if (isSatisfiesExpression(expr) && expr.type.kind === 143 /* KeyOfKeyword */) {
60504
- expr = expr.expression;
60505
- }
60495
+ const expr = isComputedPropertyName(node) ? node.expression : node.argumentExpression;
60506
60496
  return isEntityNameExpression(expr) && isTypeUsableAsPropertyName(isComputedPropertyName(node) ? checkComputedPropertyName(node) : checkExpressionCached(expr));
60507
60497
  }
60508
60498
  function isLateBoundName(name) {
@@ -65868,13 +65858,6 @@ function createTypeChecker(host) {
65868
65858
  type.escapedName = `__@${type.symbol.escapedName}@${getSymbolId(type.symbol)}`;
65869
65859
  return type;
65870
65860
  }
65871
- function getUniqueESSymbolTypeForSymbol(symbol) {
65872
- const links = getSymbolLinks(symbol);
65873
- if (!links.uniqueESSymbolType) {
65874
- links.uniqueESSymbolType = createUniqueESSymbolType(symbol);
65875
- }
65876
- return links.uniqueESSymbolType;
65877
- }
65878
65861
  function getESSymbolLikeTypeForNode(node) {
65879
65862
  if (isInJSFile(node) && isJSDocTypeExpression(node)) {
65880
65863
  const host2 = getJSDocHost(node);
@@ -65885,7 +65868,8 @@ function createTypeChecker(host) {
65885
65868
  if (isValidESSymbolDeclaration(node)) {
65886
65869
  const symbol = isCommonJsExportPropertyAssignment(node) ? getSymbolOfNode(node.left) : getSymbolOfNode(node);
65887
65870
  if (symbol) {
65888
- return getUniqueESSymbolTypeForSymbol(symbol);
65871
+ const links = getSymbolLinks(symbol);
65872
+ return links.uniqueESSymbolType || (links.uniqueESSymbolType = createUniqueESSymbolType(symbol));
65889
65873
  }
65890
65874
  }
65891
65875
  return esSymbolType;
@@ -65953,12 +65937,6 @@ function createTypeChecker(host) {
65953
65937
  !!node.questionToken
65954
65938
  ));
65955
65939
  }
65956
- function getTypeFromKeyofKeywordTypeNode(node) {
65957
- if (!isSatisfiesExpression(node.parent) || !isComputedPropertyName(node.parent.parent)) {
65958
- error2(node, Diagnostics.keyof_type_must_have_an_operand_type);
65959
- }
65960
- return stringNumberSymbolType;
65961
- }
65962
65940
  function getTypeFromTypeNode(node) {
65963
65941
  return getConditionalFlowTypeOfType(getTypeFromTypeNodeWorker(node), node);
65964
65942
  }
@@ -66054,8 +66032,6 @@ function createTypeChecker(host) {
66054
66032
  case 211 /* PropertyAccessExpression */:
66055
66033
  const symbol = getSymbolAtLocation(node);
66056
66034
  return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType;
66057
- case 143 /* KeyOfKeyword */:
66058
- return getTypeFromKeyofKeywordTypeNode(node);
66059
66035
  default:
66060
66036
  return errorType;
66061
66037
  }
@@ -78240,20 +78216,7 @@ function createTypeChecker(host) {
78240
78216
  }
78241
78217
  }
78242
78218
  const indexedAccessType = getIndexedAccessTypeOrUndefined(objectType, effectiveIndexType, accessFlags, node) || errorType;
78243
- const result = checkIndexedAccessIndexType(getFlowTypeOfAccessExpression(node, getNodeLinks(node).resolvedSymbol, indexedAccessType, indexExpression, checkMode), node);
78244
- if (!isErrorType(result)) {
78245
- return result;
78246
- }
78247
- if (isEntityNameExpression(indexExpression)) {
78248
- const fallback = getResolvedEntityNameUniqueSymbolType(indexExpression);
78249
- if (fallback) {
78250
- const indexedAccessType2 = getIndexedAccessTypeOrUndefined(objectType, fallback, accessFlags) || errorType;
78251
- if (!isErrorType(indexedAccessType2) && !(indexedAccessType2.flags & 8388608 /* IndexedAccess */ && indexedAccessType2.objectType === objectType && indexedAccessType2.indexType === fallback)) {
78252
- return getFlowTypeOfAccessExpression(node, getNodeLinks(node).resolvedSymbol, indexedAccessType2, indexExpression, checkMode);
78253
- }
78254
- }
78255
- }
78256
- return result;
78219
+ return checkIndexedAccessIndexType(getFlowTypeOfAccessExpression(node, getNodeLinks(node).resolvedSymbol, indexedAccessType, indexExpression, checkMode), node);
78257
78220
  }
78258
78221
  function callLikeExpressionMayHaveTypeArguments(node) {
78259
78222
  return isCallOrNewExpression(node) || isTaggedTemplateExpression(node) || isJsxOpeningLikeElement(node);
@@ -80501,49 +80464,13 @@ function createTypeChecker(host) {
80501
80464
  checkSourceElement(node.type);
80502
80465
  return checkSatisfiesExpressionWorker(node.expression, node.type);
80503
80466
  }
80504
- function getResolvedEntityNameUniqueSymbolType(expression) {
80505
- const links = getNodeLinks(expression);
80506
- if (!links.uniqueSymbollFallback) {
80507
- let resolved = resolveEntityName(
80508
- expression,
80509
- 111551 /* Value */ | 1048576 /* ExportValue */,
80510
- /*ignoreErrors*/
80511
- true
80512
- );
80513
- if (!resolved || resolved === unknownSymbol) {
80514
- resolved = resolveEntityName(
80515
- expression,
80516
- 111551 /* Value */ | 1048576 /* ExportValue */,
80517
- /*ignoreErrors*/
80518
- true,
80519
- /*dontResolveAlias*/
80520
- true
80521
- );
80522
- }
80523
- if (resolved) {
80524
- links.uniqueSymbollFallback = getUniqueESSymbolTypeForSymbol(resolved);
80525
- } else {
80526
- links.uniqueSymbollFallback = false;
80527
- }
80528
- }
80529
- return links.uniqueSymbollFallback || void 0;
80530
- }
80531
80467
  function checkSatisfiesExpressionWorker(expression, target, checkMode) {
80532
80468
  const exprType = checkExpression(expression, checkMode);
80533
- const errorNode = findAncestor(target.parent, (n) => n.kind === 238 /* SatisfiesExpression */ || n.kind === 350 /* JSDocSatisfiesTag */);
80534
- if (target.kind === 143 /* KeyOfKeyword */ && isComputedPropertyName(expression.parent.parent)) {
80535
- if (!(exprType.flags & 8576 /* StringOrNumberLiteralOrUnique */)) {
80536
- error2(expression, Diagnostics.A_satisfies_keyof_computed_property_name_must_be_exactly_a_single_string_number_or_unique_symbol_literal_type);
80537
- if (isEntityNameExpression(expression)) {
80538
- return getResolvedEntityNameUniqueSymbolType(expression) || exprType;
80539
- }
80540
- }
80541
- return exprType;
80542
- }
80543
80469
  const targetType = getTypeFromTypeNode(target);
80544
80470
  if (isErrorType(targetType)) {
80545
80471
  return targetType;
80546
80472
  }
80473
+ const errorNode = findAncestor(target.parent, (n) => n.kind === 238 /* SatisfiesExpression */ || n.kind === 350 /* JSDocSatisfiesTag */);
80547
80474
  checkTypeAssignableToAndOptionallyElaborate(exprType, targetType, errorNode, expression, Diagnostics.Type_0_does_not_satisfy_the_expected_type_1);
80548
80475
  return exprType;
80549
80476
  }
@@ -116551,7 +116478,7 @@ function transformDeclarations(context) {
116551
116478
  if (isDeclarationAndNotVisible(input)) return;
116552
116479
  if (hasDynamicName(input)) {
116553
116480
  if (isolatedDeclarations) {
116554
- if (!resolver.isDefinitelyReferenceToGlobalSymbolObject(input.name.expression) && !isSatisfiesKeyofExpression(input.name.expression)) {
116481
+ if (!resolver.isDefinitelyReferenceToGlobalSymbolObject(input.name.expression)) {
116555
116482
  if (isClassDeclaration(input.parent) || isObjectLiteralExpression(input.parent)) {
116556
116483
  context.addDiagnostic(createDiagnosticForNode(input, Diagnostics.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));
116557
116484
  return;
@@ -116563,7 +116490,7 @@ function transformDeclarations(context) {
116563
116490
  return;
116564
116491
  }
116565
116492
  }
116566
- } else if (!resolver.isLateBound(getParseTreeNode(input)) || !(isEntityNameExpression(input.name.expression) || isSatisfiesKeyofExpression(input.name.expression))) {
116493
+ } else if (!resolver.isLateBound(getParseTreeNode(input)) || !isEntityNameExpression(input.name.expression)) {
116567
116494
  return;
116568
116495
  }
116569
116496
  }
@@ -116834,10 +116761,7 @@ function transformDeclarations(context) {
116834
116761
  return cleanup(visitEachChild(input, visitDeclarationSubtree, context));
116835
116762
  function cleanup(returnValue) {
116836
116763
  if (returnValue && canProduceDiagnostic && hasDynamicName(input)) {
116837
- const updated = checkName(input, returnValue);
116838
- if (updated) {
116839
- returnValue = updated;
116840
- }
116764
+ checkName(input);
116841
116765
  }
116842
116766
  if (isEnclosingDeclaration(input)) {
116843
116767
  enclosingDeclaration = previousEnclosingDeclaration;
@@ -117346,7 +117270,7 @@ function transformDeclarations(context) {
117346
117270
  }
117347
117271
  }
117348
117272
  }
117349
- function checkName(node, returnValue) {
117273
+ function checkName(node) {
117350
117274
  let oldDiag;
117351
117275
  if (!suppressNewDiagnosticContexts) {
117352
117276
  oldDiag = getSymbolAccessibilityDiagnostic;
@@ -117356,21 +117280,11 @@ function transformDeclarations(context) {
117356
117280
  Debug.assert(hasDynamicName(node));
117357
117281
  const decl = node;
117358
117282
  const entityName = decl.name.expression;
117359
- const nameExpr = isEntityNameExpression(entityName) ? entityName : entityName.expression;
117360
- checkEntityNameVisibility(nameExpr, enclosingDeclaration);
117361
- let result = returnValue;
117362
- if (returnValue && nameExpr !== entityName) {
117363
- const updated = factory2.updateComputedPropertyName(decl.name, nameExpr);
117364
- result = factory2.cloneNode(returnValue);
117365
- result.name = updated;
117366
- }
117283
+ checkEntityNameVisibility(entityName, enclosingDeclaration);
117367
117284
  if (!suppressNewDiagnosticContexts) {
117368
117285
  getSymbolAccessibilityDiagnostic = oldDiag;
117369
117286
  }
117370
117287
  errorNameNode = void 0;
117371
- if (result !== returnValue) {
117372
- return result;
117373
- }
117374
117288
  }
117375
117289
  function shouldStripInternal(node) {
117376
117290
  return !!stripInternal && !!node && isInternalDeclaration(node, currentSourceFile);
@@ -124082,7 +123996,8 @@ function getImpliedNodeFormatForFile(fileName, packageJsonInfoCache, host, optio
124082
123996
  return typeof result === "object" ? result.impliedNodeFormat : result;
124083
123997
  }
124084
123998
  function getImpliedNodeFormatForFileWorker(fileName, packageJsonInfoCache, host, options) {
124085
- return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
123999
+ const moduleKind = getEmitModuleKind(options);
124000
+ return fileExtensionIsOneOf(fileName, [".d.mts" /* Dmts */, ".mts" /* Mts */, ".mjs" /* Mjs */]) ? 99 /* ESNext */ : fileExtensionIsOneOf(fileName, [".d.cts" /* Dcts */, ".cts" /* Cts */, ".cjs" /* Cjs */]) ? 1 /* CommonJS */ : (100 /* Node16 */ <= moduleKind && moduleKind <= 199 /* NodeNext */ || pathContainsNodeModules(fileName)) && fileExtensionIsOneOf(fileName, [".d.ts" /* Dts */, ".ts" /* Ts */, ".tsx" /* Tsx */, ".js" /* Js */, ".jsx" /* Jsx */]) ? lookupFromPackageJson() : void 0;
124086
124001
  function lookupFromPackageJson() {
124087
124002
  const state = getTemporaryModuleResolutionState(packageJsonInfoCache, host, options);
124088
124003
  const packageJsonLocations = [];
@@ -180337,7 +180252,6 @@ __export(ts_exports2, {
180337
180252
  isRootedDiskPath: () => isRootedDiskPath,
180338
180253
  isSameEntityName: () => isSameEntityName,
180339
180254
  isSatisfiesExpression: () => isSatisfiesExpression,
180340
- isSatisfiesKeyofExpression: () => isSatisfiesKeyofExpression,
180341
180255
  isScopeMarker: () => isScopeMarker,
180342
180256
  isSemicolonClassElement: () => isSemicolonClassElement,
180343
180257
  isSetAccessor: () => isSetAccessor,
@@ -194774,7 +194688,6 @@ if (typeof console !== "undefined") {
194774
194688
  isRootedDiskPath,
194775
194689
  isSameEntityName,
194776
194690
  isSatisfiesExpression,
194777
- isSatisfiesKeyofExpression,
194778
194691
  isScopeMarker,
194779
194692
  isSemicolonClassElement,
194780
194693
  isSetAccessor,
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-58829-3",
5
+ "version": "5.6.0-pr-58825-5",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [