@typescript-deploys/pr-build 5.8.0-pr-61034-2 → 5.8.0-pr-61032-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 CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.8";
21
- var version = `${versionMajorMinor}.0-insiders.20250123`;
21
+ var version = `${versionMajorMinor}.0-insiders.20250128`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -6021,6 +6021,7 @@ var Diagnostics = {
6021
6021
  _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported: diag(1291, 1 /* Error */, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),
6022
6022
  _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default: diag(1292, 1 /* Error */, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),
6023
6023
  ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve: diag(1293, 1 /* Error */, "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293", "ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),
6024
+ This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled: diag(1294, 1 /* Error */, "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294", "This syntax is not allowed when 'erasableSyntaxOnly' is enabled."),
6024
6025
  with_statements_are_not_allowed_in_an_async_function_block: diag(1300, 1 /* Error */, "with_statements_are_not_allowed_in_an_async_function_block_1300", "'with' statements are not allowed in an async function block."),
6025
6026
  await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(1308, 1 /* Error */, "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308", "'await' expressions are only allowed within async functions and at the top levels of modules."),
6026
6027
  The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level: diag(1309, 1 /* Error */, "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309", "The current file is a CommonJS module and cannot use 'await' at the top level."),
@@ -7508,11 +7509,13 @@ var Diagnostics = {
7508
7509
  Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, 3 /* Message */, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
7509
7510
  Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files: diag(6719, 3 /* Message */, "Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files_6719", "Require sufficient annotation on exports so other tools can trivially generate declaration files."),
7510
7511
  Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any: diag(6720, 3 /* Message */, "Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any_6720", "Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'."),
7512
+ Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript: diag(6721, 3 /* Message */, "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721", "Do not allow runtime constructs that are not part of ECMAScript."),
7511
7513
  Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
7512
7514
  Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3 /* Message */, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
7513
7515
  Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported: diag(6805, 3 /* Message */, "Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported_6805", "Disable full type checking (only critical parse and emit errors will be reported)."),
7514
7516
  Check_side_effect_imports: diag(6806, 3 /* Message */, "Check_side_effect_imports_6806", "Check side effect imports."),
7515
7517
  This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2: diag(6807, 1 /* Error */, "This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2_6807", "This operation can be simplified. This shift is identical to `{0} {1} {2}`."),
7518
+ Enable_lib_replacement: diag(6808, 3 /* Message */, "Enable_lib_replacement_6808", "Enable lib replacement."),
7516
7519
  one_of_Colon: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"),
7517
7520
  one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
7518
7521
  type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
@@ -36847,6 +36850,23 @@ var commandOptionsWithoutBuild = [
36847
36850
  affectsBuildInfo: true,
36848
36851
  affectsSemanticDiagnostics: true
36849
36852
  },
36853
+ {
36854
+ name: "erasableSyntaxOnly",
36855
+ type: "boolean",
36856
+ category: Diagnostics.Interop_Constraints,
36857
+ description: Diagnostics.Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript,
36858
+ defaultValueDescription: false,
36859
+ affectsBuildInfo: true,
36860
+ affectsSemanticDiagnostics: true
36861
+ },
36862
+ {
36863
+ name: "libReplacement",
36864
+ type: "boolean",
36865
+ affectsProgramStructure: true,
36866
+ category: Diagnostics.Language_and_Environment,
36867
+ description: Diagnostics.Enable_lib_replacement,
36868
+ defaultValueDescription: true
36869
+ },
36850
36870
  // Strict Type Checks
36851
36871
  {
36852
36872
  name: "strict",
@@ -41303,6 +41323,7 @@ function hasOneAsterisk(patternKey) {
41303
41323
  function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirectedReference, moduleName, scope, isImports) {
41304
41324
  return loadModuleFromTargetExportOrImport;
41305
41325
  function loadModuleFromTargetExportOrImport(target, subpath, pattern, key) {
41326
+ var _a, _b;
41306
41327
  if (typeof target === "string") {
41307
41328
  if (!pattern && subpath.length > 0 && !endsWith(target, "/")) {
41308
41329
  if (state.traceEnabled) {
@@ -41331,6 +41352,8 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
41331
41352
  redirectedReference,
41332
41353
  state.conditions
41333
41354
  );
41355
+ (_a = state.failedLookupLocations) == null ? void 0 : _a.push(...result.failedLookupLocations ?? emptyArray);
41356
+ (_b = state.affectingLocations) == null ? void 0 : _b.push(...result.affectingLocations ?? emptyArray);
41334
41357
  return toSearchResult(
41335
41358
  result.resolvedModule ? {
41336
41359
  path: result.resolvedModule.resolvedFileName,
@@ -41440,20 +41463,20 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
41440
41463
  void 0
41441
41464
  );
41442
41465
  function toAbsolutePath(path) {
41443
- var _a, _b;
41466
+ var _a2, _b2;
41444
41467
  if (path === void 0) return path;
41445
- return getNormalizedAbsolutePath(path, (_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a));
41468
+ return getNormalizedAbsolutePath(path, (_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2));
41446
41469
  }
41447
41470
  function combineDirectoryPath(root, dir) {
41448
41471
  return ensureTrailingDirectorySeparator(combinePaths(root, dir));
41449
41472
  }
41450
41473
  function tryLoadInputFileForPath(finalPath, entry, packagePath, isImports2) {
41451
- var _a, _b, _c, _d;
41474
+ var _a2, _b2, _c, _d;
41452
41475
  if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && !finalPath.includes("/node_modules/") && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) {
41453
41476
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) });
41454
41477
  const commonSourceDirGuesses = [];
41455
41478
  if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
41456
- const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b = (_a = state.host).getCurrentDirectory) == null ? void 0 : _b.call(_a)) || "", getCanonicalFileName));
41479
+ const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "", getCanonicalFileName));
41457
41480
  commonSourceDirGuesses.push(commonDir);
41458
41481
  } else if (state.requestContainingDirectory) {
41459
41482
  const requestingFile = toAbsolutePath(combinePaths(state.requestContainingDirectory, "index.ts"));
@@ -41509,8 +41532,8 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
41509
41532
  }
41510
41533
  return void 0;
41511
41534
  function getOutputDirectoriesForBaseDirectory(commonSourceDirGuess) {
41512
- var _a2, _b2;
41513
- const currentDir = state.compilerOptions.configFile ? ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "" : commonSourceDirGuess;
41535
+ var _a3, _b3;
41536
+ const currentDir = state.compilerOptions.configFile ? ((_b3 = (_a3 = state.host).getCurrentDirectory) == null ? void 0 : _b3.call(_a3)) || "" : commonSourceDirGuess;
41514
41537
  const candidateDirectories = [];
41515
41538
  if (state.compilerOptions.declarationDir) {
41516
41539
  candidateDirectories.push(toAbsolutePath(combineDirectoryPath(currentDir, state.compilerOptions.declarationDir)));
@@ -46588,8 +46611,13 @@ function createTypeChecker(host) {
46588
46611
  getMemberOverrideModifierStatus,
46589
46612
  isTypeParameterPossiblyReferenced,
46590
46613
  typeHasCallOrConstructSignatures,
46591
- getSymbolFlags
46614
+ getSymbolFlags,
46615
+ getTypeArgumentsForResolvedSignature
46592
46616
  };
46617
+ function getTypeArgumentsForResolvedSignature(signature) {
46618
+ if (signature.mapper === void 0) return void 0;
46619
+ return instantiateTypes((signature.target || signature).typeParameters, signature.mapper);
46620
+ }
46593
46621
  function getCandidateSignaturesForStringLiteralCompletions(call, editingArgument) {
46594
46622
  const candidatesSet = /* @__PURE__ */ new Set();
46595
46623
  const candidates = [];
@@ -51229,7 +51257,7 @@ function createTypeChecker(host) {
51229
51257
  function shouldWriteTypeOfFunctionSymbol() {
51230
51258
  var _a3;
51231
51259
  const isStaticMethodSymbol = !!(symbol.flags & 8192 /* Method */) && // typeof static method
51232
- some(symbol.declarations, (declaration) => isStatic(declaration));
51260
+ some(symbol.declarations, (declaration) => isStatic(declaration) && !isLateBindableIndexSignature(getNameOfDeclaration(declaration)));
51233
51261
  const isNonLocalFunctionSymbol = !!(symbol.flags & 16 /* Function */) && (symbol.parent || // is exported function symbol
51234
51262
  forEach(symbol.declarations, (declaration) => declaration.parent.kind === 307 /* SourceFile */ || declaration.parent.kind === 268 /* ModuleBlock */));
51235
51263
  if (isStaticMethodSymbol || isNonLocalFunctionSymbol) {
@@ -51532,6 +51560,38 @@ function createTypeChecker(host) {
51532
51560
  ids.unshift(state);
51533
51561
  return ids;
51534
51562
  }
51563
+ function indexInfoToObjectComputedNamesOrSignatureDeclaration(indexInfo, context2, typeNode) {
51564
+ if (indexInfo.components) {
51565
+ const allComponentComputedNamesSerializable = every(indexInfo.components, (e) => {
51566
+ var _a2;
51567
+ return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && context2.enclosingDeclaration && ((_a2 = isEntityNameVisible(
51568
+ e.name.expression,
51569
+ context2.enclosingDeclaration,
51570
+ /*shouldComputeAliasToMakeVisible*/
51571
+ false
51572
+ )) == null ? void 0 : _a2.accessibility) === 0 /* Accessible */);
51573
+ });
51574
+ if (allComponentComputedNamesSerializable) {
51575
+ const newComponents = filter(indexInfo.components, (e) => {
51576
+ return !hasLateBindableName(e);
51577
+ });
51578
+ return map(newComponents, (e) => {
51579
+ trackComputedName(e.name.expression, context2.enclosingDeclaration, context2);
51580
+ return setTextRange2(
51581
+ context2,
51582
+ factory.createPropertySignature(
51583
+ indexInfo.isReadonly ? [factory.createModifier(148 /* ReadonlyKeyword */)] : void 0,
51584
+ e.name,
51585
+ (isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(58 /* QuestionToken */) : void 0,
51586
+ typeNode || typeToTypeNodeHelper(getTypeOfSymbol(e.symbol), context2)
51587
+ ),
51588
+ e
51589
+ );
51590
+ });
51591
+ }
51592
+ }
51593
+ return [indexInfoToIndexSignatureDeclarationHelper(indexInfo, context2, typeNode)];
51594
+ }
51535
51595
  function createTypeNodesFromResolvedType(resolvedType) {
51536
51596
  if (checkTruncationLength(context)) {
51537
51597
  if (context.flags & 1 /* NoTruncation */) {
@@ -51556,7 +51616,7 @@ function createTypeChecker(host) {
51556
51616
  typeElements.push(signatureToSignatureDeclarationHelper(signature, 180 /* ConstructSignature */, context));
51557
51617
  }
51558
51618
  for (const info of resolvedType.indexInfos) {
51559
- typeElements.push(indexInfoToIndexSignatureDeclarationHelper(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0));
51619
+ typeElements.push(...indexInfoToObjectComputedNamesOrSignatureDeclaration(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : void 0));
51560
51620
  }
51561
51621
  const properties = resolvedType.properties;
51562
51622
  if (!properties) {
@@ -52245,7 +52305,7 @@ function createTypeChecker(host) {
52245
52305
  if (!context.tracker.canTrackSymbol) return;
52246
52306
  const firstIdentifier = getFirstIdentifier(accessExpression);
52247
52307
  const name = resolveName(
52248
- firstIdentifier,
52308
+ enclosingDeclaration,
52249
52309
  firstIdentifier.escapedText,
52250
52310
  111551 /* Value */ | 1048576 /* ExportValue */,
52251
52311
  /*nameNotFoundMessage*/
@@ -52255,6 +52315,19 @@ function createTypeChecker(host) {
52255
52315
  );
52256
52316
  if (name) {
52257
52317
  context.tracker.trackSymbol(name, enclosingDeclaration, 111551 /* Value */);
52318
+ } else {
52319
+ const fallback = resolveName(
52320
+ firstIdentifier,
52321
+ firstIdentifier.escapedText,
52322
+ 111551 /* Value */ | 1048576 /* ExportValue */,
52323
+ /*nameNotFoundMessage*/
52324
+ void 0,
52325
+ /*isUse*/
52326
+ true
52327
+ );
52328
+ if (fallback) {
52329
+ context.tracker.trackSymbol(fallback, enclosingDeclaration, 111551 /* Value */);
52330
+ }
52258
52331
  }
52259
52332
  }
52260
52333
  function lookupSymbolChain(symbol, context, meaning, yieldModuleSymbol) {
@@ -59069,8 +59142,8 @@ function createTypeChecker(host) {
59069
59142
  function getIndexSymbolFromSymbolTable(symbolTable) {
59070
59143
  return symbolTable.get("__index" /* Index */);
59071
59144
  }
59072
- function createIndexInfo(keyType, type, isReadonly, declaration) {
59073
- return { keyType, type, isReadonly, declaration };
59145
+ function createIndexInfo(keyType, type, isReadonly, declaration, components) {
59146
+ return { keyType, type, isReadonly, declaration, components };
59074
59147
  }
59075
59148
  function getIndexInfosOfSymbol(symbol) {
59076
59149
  const indexSymbol = getIndexSymbol(symbol);
@@ -62146,7 +62219,7 @@ function createTypeChecker(host) {
62146
62219
  return result;
62147
62220
  }
62148
62221
  function getIndexInfoWithReadonly(info, readonly) {
62149
- return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration) : info;
62222
+ return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration, info.components) : info;
62150
62223
  }
62151
62224
  function createLiteralType(flags, value, symbol, regularType) {
62152
62225
  const type = createTypeWithSymbol(flags, symbol);
@@ -62936,7 +63009,7 @@ function createTypeChecker(host) {
62936
63009
  return type.restrictiveInstantiation;
62937
63010
  }
62938
63011
  function instantiateIndexInfo(info, mapper) {
62939
- return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration);
63012
+ return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration, info.components);
62940
63013
  }
62941
63014
  function isContextSensitive(node) {
62942
63015
  Debug.assert(node.kind !== 174 /* MethodDeclaration */ || isObjectLiteralMethod(node));
@@ -67069,7 +67142,7 @@ function createTypeChecker(host) {
67069
67142
  }
67070
67143
  }
67071
67144
  }
67072
- const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly)));
67145
+ const result = createAnonymousType(type.symbol, members, emptyArray, emptyArray, sameMap(getIndexInfosOfType(type), (info) => createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly, info.declaration, info.components)));
67073
67146
  result.objectFlags |= getObjectFlags(type) & (4096 /* JSLiteral */ | 262144 /* NonInferrableType */);
67074
67147
  return result;
67075
67148
  }
@@ -73119,16 +73192,33 @@ function createTypeChecker(host) {
73119
73192
  const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0];
73120
73193
  return isKnownSymbol(symbol) || firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name) && isTypeAssignableToKind(checkComputedPropertyName(firstDecl.name), 4096 /* ESSymbol */);
73121
73194
  }
73195
+ function isSymbolWithComputedName(symbol) {
73196
+ var _a;
73197
+ const firstDecl = (_a = symbol.declarations) == null ? void 0 : _a[0];
73198
+ return firstDecl && isNamedDeclaration(firstDecl) && isComputedPropertyName(firstDecl.name);
73199
+ }
73122
73200
  function getObjectLiteralIndexInfo(isReadonly, offset, properties, keyType) {
73201
+ var _a;
73123
73202
  const propTypes = [];
73203
+ let components;
73124
73204
  for (let i = offset; i < properties.length; i++) {
73125
73205
  const prop = properties[i];
73126
73206
  if (keyType === stringType && !isSymbolWithSymbolName(prop) || keyType === numberType && isSymbolWithNumericName(prop) || keyType === esSymbolType && isSymbolWithSymbolName(prop)) {
73127
73207
  propTypes.push(getTypeOfSymbol(properties[i]));
73208
+ if (isSymbolWithComputedName(properties[i])) {
73209
+ components = append(components, (_a = properties[i].declarations) == null ? void 0 : _a[0]);
73210
+ }
73128
73211
  }
73129
73212
  }
73130
73213
  const unionType = propTypes.length ? getUnionType(propTypes, 2 /* Subtype */) : undefinedType;
73131
- return createIndexInfo(keyType, unionType, isReadonly);
73214
+ return createIndexInfo(
73215
+ keyType,
73216
+ unionType,
73217
+ isReadonly,
73218
+ /*declaration*/
73219
+ void 0,
73220
+ components
73221
+ );
73132
73222
  }
73133
73223
  function getImmediateAliasedSymbol(symbol) {
73134
73224
  Debug.assert((symbol.flags & 2097152 /* Alias */) !== 0, "Should only get Alias here.");
@@ -73663,6 +73753,9 @@ function createTypeChecker(host) {
73663
73753
  return getNameFromJsxElementAttributesContainer(JsxNames.ElementAttributesPropertyNameContainer, jsxNamespace);
73664
73754
  }
73665
73755
  function getJsxElementChildrenPropertyName(jsxNamespace) {
73756
+ if (compilerOptions.jsx === 4 /* ReactJSX */ || compilerOptions.jsx === 5 /* ReactJSXDev */) {
73757
+ return "children";
73758
+ }
73666
73759
  return getNameFromJsxElementAttributesContainer(JsxNames.ElementChildrenAttributeNameContainer, jsxNamespace);
73667
73760
  }
73668
73761
  function getUninstantiatedJsxSignaturesOfType(elementType, caller) {
@@ -80174,6 +80267,9 @@ function createTypeChecker(host) {
80174
80267
  checkVariableLikeDeclaration(node);
80175
80268
  const func = getContainingFunction(node);
80176
80269
  if (hasSyntacticModifier(node, 31 /* ParameterPropertyModifier */)) {
80270
+ if (compilerOptions.erasableSyntaxOnly) {
80271
+ error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
80272
+ }
80177
80273
  if (!(func.kind === 176 /* Constructor */ && nodeIsPresent(func.body))) {
80178
80274
  error(node, Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation);
80179
80275
  }
@@ -83828,7 +83924,7 @@ function createTypeChecker(host) {
83828
83924
  const typeDeclaration = symbol.valueDeclaration;
83829
83925
  if (typeDeclaration && isClassLike(typeDeclaration)) {
83830
83926
  for (const member of typeDeclaration.members) {
83831
- if (!isStatic(member) && !hasBindableName(member)) {
83927
+ if ((!isStaticIndex && !isStatic(member) || isStaticIndex && isStatic(member)) && !hasBindableName(member)) {
83832
83928
  const symbol2 = getSymbolOfDeclaration(member);
83833
83929
  checkIndexConstraintForProperty(type, symbol2, getTypeOfExpression(member.name.expression), getNonMissingTypeOfSymbol(symbol2));
83834
83930
  }
@@ -84878,6 +84974,9 @@ function createTypeChecker(host) {
84878
84974
  checkCollisionsForDeclarationName(node, node.name);
84879
84975
  checkExportsOnMergedDeclarations(node);
84880
84976
  node.members.forEach(checkEnumMember);
84977
+ if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
84978
+ error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
84979
+ }
84881
84980
  computeEnumMemberValues(node);
84882
84981
  const enumSymbol = getSymbolOfDeclaration(node);
84883
84982
  const firstDeclaration = getDeclarationOfKind(enumSymbol, node.kind);
@@ -84979,6 +85078,9 @@ function createTypeChecker(host) {
84979
85078
  checkExportsOnMergedDeclarations(node);
84980
85079
  const symbol = getSymbolOfDeclaration(node);
84981
85080
  if (symbol.flags & 512 /* ValueModule */ && !inAmbientContext && isInstantiatedModule(node, shouldPreserveConstEnums(compilerOptions))) {
85081
+ if (compilerOptions.erasableSyntaxOnly) {
85082
+ error(node.name, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
85083
+ }
84982
85084
  if (getIsolatedModules(compilerOptions) && !getSourceFileOfNode(node).externalModuleIndicator) {
84983
85085
  error(node.name, Diagnostics.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement, isolatedModulesLikeFlagName);
84984
85086
  }
@@ -85366,7 +85468,11 @@ function createTypeChecker(host) {
85366
85468
  return;
85367
85469
  }
85368
85470
  checkGrammarModifiers(node);
85369
- if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
85471
+ const isImportEquals = isInternalModuleImportEqualsDeclaration(node);
85472
+ if (compilerOptions.erasableSyntaxOnly && isImportEquals && !(node.flags & 33554432 /* Ambient */)) {
85473
+ error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
85474
+ }
85475
+ if (isImportEquals || checkExternalImportOrExportDeclaration(node)) {
85370
85476
  checkImportBinding(node);
85371
85477
  markLinkedReferences(node, 6 /* ExportImportEquals */);
85372
85478
  if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) {
@@ -87631,6 +87737,35 @@ function createTypeChecker(host) {
87631
87737
  for (const info of infoList) {
87632
87738
  if (info.declaration) continue;
87633
87739
  if (info === anyBaseTypeIndexInfo) continue;
87740
+ if (info.components) {
87741
+ const allComponentComputedNamesSerializable = every(info.components, (e) => {
87742
+ var _a;
87743
+ return !!(e.name && isComputedPropertyName(e.name) && isEntityNameExpression(e.name.expression) && enclosing && ((_a = isEntityNameVisible(
87744
+ e.name.expression,
87745
+ enclosing,
87746
+ /*shouldComputeAliasToMakeVisible*/
87747
+ false
87748
+ )) == null ? void 0 : _a.accessibility) === 0 /* Accessible */);
87749
+ });
87750
+ if (allComponentComputedNamesSerializable) {
87751
+ const newComponents = filter(info.components, (e) => {
87752
+ return !hasLateBindableName(e);
87753
+ });
87754
+ result.push(...map(newComponents, (e) => {
87755
+ trackComputedName(e.name.expression);
87756
+ const mods = infoList === staticInfos ? [factory.createModifier(126 /* StaticKeyword */)] : void 0;
87757
+ return factory.createPropertyDeclaration(
87758
+ append(mods, info.isReadonly ? factory.createModifier(148 /* ReadonlyKeyword */) : void 0),
87759
+ e.name,
87760
+ (isPropertySignature(e) || isPropertyDeclaration(e) || isMethodSignature(e) || isMethodDeclaration(e) || isGetAccessor(e) || isSetAccessor(e)) && e.questionToken ? factory.createToken(58 /* QuestionToken */) : void 0,
87761
+ nodeBuilder.typeToTypeNode(getTypeOfSymbol(e.symbol), enclosing, flags, internalFlags, tracker),
87762
+ /*initializer*/
87763
+ void 0
87764
+ );
87765
+ }));
87766
+ continue;
87767
+ }
87768
+ }
87634
87769
  const node = nodeBuilder.indexInfoToIndexSignatureDeclaration(info, enclosing, flags, internalFlags, tracker);
87635
87770
  if (node && infoList === staticInfos) {
87636
87771
  (node.modifiers || (node.modifiers = factory.createNodeArray())).unshift(factory.createModifier(126 /* StaticKeyword */));
@@ -87641,6 +87776,22 @@ function createTypeChecker(host) {
87641
87776
  }
87642
87777
  }
87643
87778
  return result;
87779
+ function trackComputedName(accessExpression) {
87780
+ if (!tracker.trackSymbol) return;
87781
+ const firstIdentifier = getFirstIdentifier(accessExpression);
87782
+ const name = resolveName(
87783
+ firstIdentifier,
87784
+ firstIdentifier.escapedText,
87785
+ 111551 /* Value */ | 1048576 /* ExportValue */,
87786
+ /*nameNotFoundMessage*/
87787
+ void 0,
87788
+ /*isUse*/
87789
+ true
87790
+ );
87791
+ if (name) {
87792
+ tracker.trackSymbol(name, enclosing, 111551 /* Value */);
87793
+ }
87794
+ }
87644
87795
  }
87645
87796
  };
87646
87797
  function isImportRequiredByAugmentation(node) {
@@ -88885,7 +89036,7 @@ function createTypeChecker(host) {
88885
89036
  }
88886
89037
  }
88887
89038
  function checkGrammarForInvalidDynamicName(node, message) {
88888
- if (isNonBindableDynamicName(node)) {
89039
+ if (isNonBindableDynamicName(node) && !isEntityNameExpression(isElementAccessExpression(node) ? skipParentheses(node.argumentExpression) : node.expression)) {
88889
89040
  return grammarErrorOnNode(node, message);
88890
89041
  }
88891
89042
  }
@@ -121267,12 +121418,13 @@ function createCreateProgramOptions(rootNames, options, host, oldProgram, config
121267
121418
  typeScriptVersion: typeScriptVersion2
121268
121419
  };
121269
121420
  }
121270
- function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) {
121421
+ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) {
121271
121422
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
121272
- let createProgramOptions = isArray(rootNamesOrOptions) ? createCreateProgramOptions(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : rootNamesOrOptions;
121273
- const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion2, host: createProgramOptionsHost } = createProgramOptions;
121274
- let { oldProgram } = createProgramOptions;
121275
- createProgramOptions = void 0;
121423
+ let _createProgramOptions = isArray(_rootNamesOrOptions) ? createCreateProgramOptions(_rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : _rootNamesOrOptions;
121424
+ const { rootNames, options, configFileParsingDiagnostics, projectReferences, typeScriptVersion: typeScriptVersion2, host: createProgramOptionsHost } = _createProgramOptions;
121425
+ let { oldProgram } = _createProgramOptions;
121426
+ _createProgramOptions = void 0;
121427
+ _rootNamesOrOptions = void 0;
121276
121428
  for (const option of commandLineOptionOfCustomType) {
121277
121429
  if (hasProperty(options, option.name)) {
121278
121430
  if (typeof options[option.name] === "string") {
@@ -123253,6 +123405,16 @@ function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _config
123253
123405
  var _a2, _b2, _c2, _d2, _e2;
123254
123406
  const existing = resolvedLibProcessing == null ? void 0 : resolvedLibProcessing.get(libFileName);
123255
123407
  if (existing) return existing;
123408
+ if (options.libReplacement === false) {
123409
+ const result2 = {
123410
+ resolution: {
123411
+ resolvedModule: void 0
123412
+ },
123413
+ actual: combinePaths(defaultLibraryPath, libFileName)
123414
+ };
123415
+ (resolvedLibProcessing ?? (resolvedLibProcessing = /* @__PURE__ */ new Map())).set(libFileName, result2);
123416
+ return result2;
123417
+ }
123256
123418
  if (structureIsReused !== 0 /* Not */ && oldProgram && !hasInvalidatedLibResolutions(libFileName)) {
123257
123419
  const oldResolution = (_a2 = oldProgram.resolvedLibReferences) == null ? void 0 : _a2.get(libFileName);
123258
123420
  if (oldResolution) {
@@ -618,6 +618,7 @@
618
618
  "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Zakázat import, require nebo <reference> zvětšování počtu souborů, které by typeScript měl přidat do projektu.",
619
619
  "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Zakažte odkazy na stejný soubor s nekonzistentně použitými malými a velkými písmeny.",
620
620
  "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Nepřidávat odkazy se třemi lomítky nebo importované moduly do seznamu kompilovaných souborů",
621
+ "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "Nepovolit konstruktory modulu runtime, které nejsou součástí ECMAScriptu",
621
622
  "Do_not_emit_comments_to_output_6009": "Negenerovat komentáře pro výstup",
622
623
  "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "Negenerovat deklarace pro kód s anotací @internal",
623
624
  "Do_not_emit_outputs_6010": "Negenerovat výstupy",
@@ -681,6 +682,7 @@
681
682
  "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Povolte experimentální podporu pro starší experimentální dekoratéry.",
682
683
  "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Povolte import souborů s libovolnou příponou za předpokladu, že je k dispozici soubor deklarace.",
683
684
  "Enable_importing_json_files_6689": "Povolte importování souborů .json.",
685
+ "Enable_lib_replacement_6808": "Povolit nahrazení knihovny",
684
686
  "Enable_project_compilation_6302": "Povolit kompilování projektu",
685
687
  "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Povolte ve funkcích metody bind, call a apply.",
686
688
  "Enable_strict_checking_of_function_types_6186": "Povolí striktní kontrolu typů funkcí.",
@@ -890,6 +892,7 @@
890
892
  "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "V příkazech, které se kompilují na volání CommonJS „require“, se nepovolují kontrolní výrazy importu.",
891
893
  "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "Kontrolní výrazy importu jsou podporovány pouze v případě, že je možnost --module nastavena na esnext, node18, nodenext nebo preserve.",
892
894
  "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Kontrolní výrazy importu se nedají použít s importy nebo exporty, které jsou jenom typ.",
895
+ "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_asserts_2880": "Kontrolní výrazy importu byly nahrazeny atributy importu. Místo asserts použijte with.",
893
896
  "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Přiřazení importu nelze použít, pokud jsou cílem moduly ECMAScript. Zkuste místo toho použít import * as ns from \"mod\", import {a} from \"mod\", import d from \"mod\" nebo jiný formát modulu.",
894
897
  "Import_attribute_values_must_be_string_literal_expressions_2858": "Hodnoty atributů importu musí být výrazy formou řetězcových literálů.",
895
898
  "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "V příkazech, které se kompilují na volání CommonJS „require“, se nepovolují atributy importu.",
@@ -1685,6 +1688,7 @@
1685
1688
  "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Tento příznak regulárního výrazu je k dispozici pouze při cílení na „{0}“ nebo novější.",
1686
1689
  "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Přepsání této relativní cesty importu není bezpečné, protože cesta vypadá jako název souboru, ale ve skutečnosti se překládá na {0}.",
1687
1690
  "This_spread_always_overwrites_this_property_2785": "Tento rozsah vždy přepíše tuto vlastnost.",
1691
+ "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Tato syntaxe není povolená, pokud je povolená možnost erasableSyntaxOnly.",
1688
1692
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Tato syntaxe je vyhrazená pro soubory s příponou .mts nebo .cts. Přidejte koncovou čárku nebo explicitní omezení.",
1689
1693
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Tato syntaxe je vyhrazená pro soubory s příponou .mts nebo .cts. Místo toho použijte výraz „as“.",
1690
1694
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Tato syntaxe vyžaduje importovanou podpůrnou aplikaci, ale modul {0} se nenašel.",
@@ -618,6 +618,7 @@
618
618
  "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Hiermit wird verhindert, dass „import“, „require“ oder „<reference>“ die Anzahl der Dateien erweitern, die TypeScript einem Projekt hinzufügen soll.",
619
619
  "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Verweise mit uneinheitlicher Groß-/Kleinschreibung auf die gleiche Datei nicht zulassen.",
620
620
  "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Fügen Sie keine Verweise mit dreifachen Schrägstrichen oder importierte Module zur Liste kompilierter Dateien hinzu.",
621
+ "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "Laufzeitkonstrukte, die nicht Teil von ECMAScript sind, nicht zulassen",
621
622
  "Do_not_emit_comments_to_output_6009": "Kommentare nicht an die Ausgabe ausgeben.",
622
623
  "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "Deklarationen für Code mit einer Anmerkung \"@internal\" nicht ausgeben.",
623
624
  "Do_not_emit_outputs_6010": "Keine Ausgaben ausgeben.",
@@ -681,6 +682,7 @@
681
682
  "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Aktivieren Sie experimentelle Unterstützung für experimentelle Legacy-Decorators.",
682
683
  "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Hiermit wird das Importieren von Dateien mit beliebiger Erweiterung aktiviert, sofern eine Deklarationsdatei vorhanden ist.",
683
684
  "Enable_importing_json_files_6689": "Aktivieren Sie das Importieren von JSON-Dateien.",
685
+ "Enable_lib_replacement_6808": "Libersetzung aktivieren.",
684
686
  "Enable_project_compilation_6302": "Projektkompilierung aktivieren",
685
687
  "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Aktivieren Sie die strict-Methoden \"bind\", \"call\" und \"apply\" für Funktionen.",
686
688
  "Enable_strict_checking_of_function_types_6186": "Aktivieren Sie die strenge Überprüfung für Funktionstypen.",
@@ -890,6 +892,7 @@
890
892
  "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "Importassertionen sind für Anweisungen, die in \"require\"-Aufrufe von \"CommonJS\" kompilieren, nicht zulässig.",
891
893
  "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "Importassertionen werden nur unterstützt, wenn die Option „--module“ auf „esnext“, „node18“, „nodenext“ oder „preserve“ festgelegt ist.",
892
894
  "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Importassertionen können nicht mit rein typbasierten Importen oder Exporten verwendet werden.",
895
+ "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_asserts_2880": "Importassertionen wurden durch Importattribute ersetzt. Verwenden Sie \"with\" anstelle von \"asserts\".",
893
896
  "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Die Importzuweisung kann nicht verwendet werden, wenn das Ziel ECMAScript-Module sind. Verwenden Sie stattdessen ggf. \"import * as ns from 'mod'\", \"import {a} from 'mod'\", \"import d from 'mod'\" oder ein anderes Modulformat.",
894
897
  "Import_attribute_values_must_be_string_literal_expressions_2858": "Importattributwerte müssen Zeichenfolgenliteralausdrücke sein.",
895
898
  "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "Importattribute sind für Anweisungen, die in \"require\"-Aufrufe von \"CommonJS\" kompiliert werden, nicht zulässig.",
@@ -1685,6 +1688,7 @@
1685
1688
  "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Dieses Flag für reguläre Ausdrücke ist nur verfügbar, wenn es auf „{0}“ oder höher ausgerichtet ist.",
1686
1689
  "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Dieser relative Importpfad ist unsicher umzuschreiben, da er wie ein Dateiname aussieht, aber tatsächlich auf \"{0}\" verweist.",
1687
1690
  "This_spread_always_overwrites_this_property_2785": "Diese Eigenschaft wird immer durch diesen Spread-Operator überschrieben.",
1691
+ "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Diese Syntax ist nicht zulässig, wenn \"erasableSyntaxOnly\" aktiviert ist.",
1688
1692
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Diese Syntax ist in Dateien mit der Erweiterung .mts oder .cts reserviert. Fügen Sie ein nachfolgendes Komma oder eine explizite Einschränkung hinzu.",
1689
1693
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Diese Syntax ist in Dateien mit der Erweiterung \".mts\" oder \".cts\" reserviert. Verwenden Sie stattdessen einen „as“-Ausdruck.",
1690
1694
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Diese Syntax erfordert ein importiertes Hilfsprogramm, aber das Modul \"{0}\" wurde nicht gefunden.",
@@ -618,6 +618,7 @@
618
618
  "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "No permita que ningún \"import\", \"require\" o \"<reference>\" amplíe el número de archivos que TypeScript debe agregar a un proyecto.",
619
619
  "Disallow_inconsistently_cased_references_to_the_same_file_6078": "No permitir referencias al mismo archivo con un uso incoherente de mayúsculas y minúsculas.",
620
620
  "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "No agregar módulos importados ni referencias con triple barra diagonal a la lista de archivos compilados.",
621
+ "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "No permitir construcciones en tiempo de ejecución que no formen parte de ECMAScript.",
621
622
  "Do_not_emit_comments_to_output_6009": "No emitir comentarios en la salida.",
622
623
  "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "No emitir declaraciones para el código que tiene una anotación \"@internal\".",
623
624
  "Do_not_emit_outputs_6010": "No emitir salidas.",
@@ -681,6 +682,7 @@
681
682
  "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Habilite la compatibilidad experimental con decoradores experimentales heredados.",
682
683
  "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Habilite la importación de archivos con cualquier extensión, siempre que haya un archivo de declaración presente.",
683
684
  "Enable_importing_json_files_6689": "Habilite la importación de archivos .json.",
685
+ "Enable_lib_replacement_6808": "Habilite el reemplazo de bibliotecas.",
684
686
  "Enable_project_compilation_6302": "Habilitar la compilación de proyecto",
685
687
  "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Habilite los métodos estrictos \"bind\", \"call\" y \"apply\" en las funciones.",
686
688
  "Enable_strict_checking_of_function_types_6186": "Habilite la comprobación estricta de los tipos de función.",
@@ -890,6 +892,7 @@
890
892
  "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "No se permiten aserciones de importación en instrucciones que se compilan en llamadas “require” de CommonJS.",
891
893
  "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "Las aserciones de importación solo se admiten cuando la opción \"--module\" está establecida en \"esnext\", \"node18\", \"nodenext\" o \"preserve\".",
892
894
  "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Las aserciones de importación no se pueden usar con importaciones o exportaciones de solo tipo.",
895
+ "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_asserts_2880": "Las aserciones de importación se han reemplazado por atributos de importación. Use 'with' en lugar de 'asserts'.",
893
896
  "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "No se puede usar una asignación de importación cuando se eligen módulos de ECMAScript como destino. Considere la posibilidad de usar \"import * as ns from 'mod'\", \"import {a} from 'mod'\", \"import d from 'mod'\" u otro formato de módulo en su lugar.",
894
897
  "Import_attribute_values_must_be_string_literal_expressions_2858": "Los valores de atributo de importación deben ser expresiones literales de cadena.",
895
898
  "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "No se permiten atributos de importación en instrucciones que se compilan en llamadas “require” de CommonJS.",
@@ -1685,6 +1688,7 @@
1685
1688
  "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Esta marca de expresión regular solo está disponible cuando el destino es “{0}” o posterior.",
1686
1689
  "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Esta ruta de acceso de importación relativa no es segura de reescribir porque parece un nombre de archivo, pero realmente se resuelve en \"{0}\".",
1687
1690
  "This_spread_always_overwrites_this_property_2785": "Este elemento de propagación siempre sobrescribe esta propiedad.",
1691
+ "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Esta sintaxis no se permite cuando \"erasableSyntaxOnly\" está habilitado.",
1688
1692
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Esta sintaxis está reservada en archivos con la extensión .mts o .CTS. Agregue una coma o una restricción explícita al final.",
1689
1693
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Esta sintaxis se reserva a archivos con la extensión .mts o .cts. En su lugar, use una expresión \"as\".",
1690
1694
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Esta sintaxis requiere un asistente importado, pero no se puede encontrar el módulo \"{0}\".",
@@ -618,6 +618,7 @@
618
618
  "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Interdire à « import », « require » ou « <reference> » d’étendre le nombre de fichiers que TypeScript doit ajouter à un projet.",
619
619
  "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Interdisez les références dont la casse est incohérente dans le même fichier.",
620
620
  "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "N'ajoutez pas de références avec trois barres obliques, ni de modules importés à la liste des fichiers compilés.",
621
+ "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "N’autorisez pas les constructions d’exécution qui ne font pas partie d’ECMAScript.",
621
622
  "Do_not_emit_comments_to_output_6009": "Ne pas émettre de commentaires dans la sortie.",
622
623
  "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "N'émettez pas de déclarations pour du code ayant une annotation '@internal'.",
623
624
  "Do_not_emit_outputs_6010": "N'émettez pas de sorties.",
@@ -681,6 +682,7 @@
681
682
  "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Activez la prise en charge expérimentale des éléments décoratifs expérimentaux hérités.",
682
683
  "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Activez l’importation de fichiers avec n’importe quelle extension, à condition qu’un fichier de déclaration soit présent.",
683
684
  "Enable_importing_json_files_6689": "Activer l’importation des fichiers .json.",
685
+ "Enable_lib_replacement_6808": "Activez le remplacement de la bibliothèque.",
684
686
  "Enable_project_compilation_6302": "Activer la compilation du projet",
685
687
  "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Activez des méthodes 'bind', 'call' et 'apply' strictes sur les fonctions.",
686
688
  "Enable_strict_checking_of_function_types_6186": "Activez la vérification stricte des types de fonction.",
@@ -890,6 +892,7 @@
890
892
  "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "Les assertions d’importation ne sont pas autorisées sur les instructions qui se compilent en appels CommonJS ' require'.",
891
893
  "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "Les assertions d’importation sont prises en charge uniquement lorsque l’option « --module » est définie sur « esnext », « node18 », « nodenext » ou « preserve ».",
892
894
  "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Les assertions d’importation ne peuvent pas être utilisées avec les importations ou exportations de type uniquement.",
895
+ "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_asserts_2880": "Les assertions d’importation ont été remplacées par des attributs d’importation. Utilisez 'with' à la place de 'asserts'.",
893
896
  "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Vous ne pouvez pas utiliser l'assignation d'importation pour cibler des modules ECMAScript. Utilisez plutôt 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"' ou un autre format de module.",
894
897
  "Import_attribute_values_must_be_string_literal_expressions_2858": "Les valeurs d’attribut d’importation doivent être des expressions littérales de chaîne.",
895
898
  "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "Les attributs d’importation ne sont pas autorisés sur les instructions qui se compilent en appels CommonJS ' require'.",
@@ -1685,6 +1688,7 @@
1685
1688
  "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Cet indicateur d’expression régulière n’est disponible que lors du ciblage de « {0} » ou d’une version ultérieure.",
1686
1689
  "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Ce chemin d'importation relatif n'est pas sûr à réécrire car il ressemble à un nom de fichier, mais se résout en réalité en « {0} ».",
1687
1690
  "This_spread_always_overwrites_this_property_2785": "Cette diffusion écrase toujours cette propriété.",
1691
+ "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Cette syntaxe n’est pas autorisée quand 'erasableSyntaxOnly' est activé.",
1688
1692
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Cette syntaxe est réservée dans les fichiers avec l’extension .mts ou .cts. Veuillez ajouter une virgule de fin ou une contrainte explicite.",
1689
1693
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Cette syntaxe est réservée dans les fichiers avec l’extension .mts ou .cts. Utilisez une expression « as »à la place.",
1690
1694
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Cette syntaxe nécessite une application d'assistance importée, mais le module '{0}' est introuvable.",
@@ -618,6 +618,7 @@
618
618
  "Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672": "Non consente a direttive 'import's, 'require's o '<reference>' di espandere il numero di file che TypeScript deve aggiungere a un progetto.",
619
619
  "Disallow_inconsistently_cased_references_to_the_same_file_6078": "Non consente riferimenti allo stesso file in cui le maiuscole/minuscole vengono usate in modo incoerente.",
620
620
  "Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159": "Non aggiunge riferimenti con tripla barra (////) o moduli importati all'elenco di file compilati.",
621
+ "Do_not_allow_runtime_constructs_that_are_not_part_of_ECMAScript_6721": "Non consentire costrutti di runtime che non fanno parte di ECMAScript.",
621
622
  "Do_not_emit_comments_to_output_6009": "Non crea commenti nell'output.",
622
623
  "Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056": "Non crea dichiarazioni per codice che contiene un'annotazione '@internal'.",
623
624
  "Do_not_emit_outputs_6010": "Non crea output.",
@@ -681,6 +682,7 @@
681
682
  "Enable_experimental_support_for_legacy_experimental_decorators_6630": "Abilitare il supporto sperimentale per gli elementi Decorator sperimentali legacy.",
682
683
  "Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264": "Abilitare l'importazione di file con qualsiasi estensione, purché sia presente un file di dichiarazione.",
683
684
  "Enable_importing_json_files_6689": "Abilita l'importazione di file .json.",
685
+ "Enable_lib_replacement_6808": "Abilita sostituzione librerie.",
684
686
  "Enable_project_compilation_6302": "Abilitare la compilazione dei progetti",
685
687
  "Enable_strict_bind_call_and_apply_methods_on_functions_6214": "Abilitare i metodi strict 'bind', 'call' e 'apply' nelle funzioni.",
686
688
  "Enable_strict_checking_of_function_types_6186": "Abilita il controllo tassativo dei tipi funzione.",
@@ -890,6 +892,7 @@
890
892
  "Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836": "Le asserzioni di importazione non sono consentite nelle istruzioni che compilano nelle chiamate 'require' di CommonJS.",
891
893
  "Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821": "Le asserzioni di importazione sono supportate solo quando l'opzione '--module' è impostata su 'esnext', 'node18', 'nodenext' o 'preserve'.",
892
894
  "Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822": "Non è possibile usare asserzioni di importazione con importazioni o esportazioni di solo tipo.",
895
+ "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_asserts_2880": "Le asserzioni di importazione sono state sostituite dagli attributi di importazione. Usare 'with' invece di 'asserts'.",
893
896
  "Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202": "Non è possibile usare l'assegnazione di importazione se destinata a moduli ECMAScript. Provare a usare 'import * as ns from \"mod\"', 'import {a} from \"mod\"', 'import d from \"mod\"' o un altro formato di modulo.",
894
897
  "Import_attribute_values_must_be_string_literal_expressions_2858": "I valori degli attributi di importazione devono essere espressioni letterali delle stringhe.",
895
898
  "Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856": "Gli attributi di importazione non sono consentiti nelle istruzioni che compilano nelle chiamate 'require' di CommonJS.",
@@ -1685,6 +1688,7 @@
1685
1688
  "This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501": "Questo flag di espressione regolare è disponibile solo quando la destinazione è '{0}' o versioni successive.",
1686
1689
  "This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolv_2876": "Questo percorso di importazione relativo non è sicuro da riscrivere perché sembra un nome di file, ma in realtà si risolve in \"{0}\".",
1687
1690
  "This_spread_always_overwrites_this_property_2785": "Questo spread sovrascrive sempre questa proprietà.",
1691
+ "This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled_1294": "Questa sintassi non è consentita quando 'erasableSyntaxOnly' è abilitato.",
1688
1692
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060": "Questa sintassi è riservata ai file con estensione MTS o CTS. Aggiungere una virgola finale o un vincolo esplicito.",
1689
1693
  "This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059": "Questa sintassi è riservata ai file con estensione mts o cts. Utilizzare un'espressione 'as'.",
1690
1694
  "This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354": "Con questa sintassi è richiesto un helper importato, ma il modulo '{0}' non è stato trovato.",