typescript 4.5.0-dev.20210914 → 4.5.0-dev.20210919

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
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.5";
72
- ts.version = ts.versionMajorMinor + ".0-dev.20210914";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20210919";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  function tryGetNativeMap() {
@@ -5886,6 +5886,7 @@ var ts;
5886
5886
  Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block: diag(2817, ts.DiagnosticCategory.Error, "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817", "Property '{0}' has no initializer and is not definitely assigned in a class static block."),
5887
5887
  Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers: diag(2818, ts.DiagnosticCategory.Error, "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818", "Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),
5888
5888
  Namespace_name_cannot_be_0: diag(2819, ts.DiagnosticCategory.Error, "Namespace_name_cannot_be_0_2819", "Namespace name cannot be '{0}'."),
5889
+ Type_0_is_not_assignable_to_type_1_Did_you_mean_2: diag(2820, ts.DiagnosticCategory.Error, "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820", "Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),
5889
5890
  Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
5890
5891
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
5891
5892
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -5987,6 +5988,11 @@ var ts;
5987
5988
  This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0: diag(4116, ts.DiagnosticCategory.Error, "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116", "This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),
5988
5989
  This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4117, ts.DiagnosticCategory.Error, "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117", "This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
5989
5990
  The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized: diag(4118, ts.DiagnosticCategory.Error, "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118", "The type of this node cannot be serialized because its property '{0}' cannot be serialized."),
5991
+ This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0: diag(4119, ts.DiagnosticCategory.Error, "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119", "This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),
5992
+ This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0: diag(4120, ts.DiagnosticCategory.Error, "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120", "This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),
5993
+ This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class: diag(4121, ts.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121", "This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),
5994
+ This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, ts.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),
5995
+ This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, ts.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
5990
5996
  The_current_host_does_not_support_the_0_option: diag(5001, ts.DiagnosticCategory.Error, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
5991
5997
  Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, ts.DiagnosticCategory.Error, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
5992
5998
  File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, ts.DiagnosticCategory.Error, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
@@ -16438,6 +16444,15 @@ var ts;
16438
16444
  return name === "Infinity" || name === "-Infinity" || name === "NaN";
16439
16445
  }
16440
16446
  ts.isInfinityOrNaNString = isInfinityOrNaNString;
16447
+ function isCatchClauseVariableDeclaration(node) {
16448
+ return node.kind === 252 && node.parent.kind === 290;
16449
+ }
16450
+ ts.isCatchClauseVariableDeclaration = isCatchClauseVariableDeclaration;
16451
+ function isParameterOrCatchClauseVariable(symbol) {
16452
+ var declaration = symbol.valueDeclaration && getRootDeclaration(symbol.valueDeclaration);
16453
+ return !!declaration && (ts.isParameter(declaration) || isCatchClauseVariableDeclaration(declaration));
16454
+ }
16455
+ ts.isParameterOrCatchClauseVariable = isParameterOrCatchClauseVariable;
16441
16456
  })(ts || (ts = {}));
16442
16457
  var ts;
16443
16458
  (function (ts) {
@@ -51563,6 +51578,13 @@ var ts;
51563
51578
  message = ts.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;
51564
51579
  }
51565
51580
  else {
51581
+ if (source.flags & 128 && target.flags & 1048576) {
51582
+ var suggestedType = getSuggestedTypeForNonexistentStringLiteralType(source, target);
51583
+ if (suggestedType) {
51584
+ reportError(ts.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2, generalizedSourceType, targetType, typeToString(suggestedType));
51585
+ return;
51586
+ }
51587
+ }
51566
51588
  message = ts.Diagnostics.Type_0_is_not_assignable_to_type_1;
51567
51589
  }
51568
51590
  }
@@ -56015,9 +56037,10 @@ var ts;
56015
56037
  }
56016
56038
  function isConstantReference(node) {
56017
56039
  switch (node.kind) {
56018
- case 79:
56040
+ case 79: {
56019
56041
  var symbol = getResolvedSymbol(node);
56020
- return isConstVariable(symbol) || !!symbol.valueDeclaration && ts.getRootDeclaration(symbol.valueDeclaration).kind === 162 && !isParameterAssigned(symbol);
56042
+ return isConstVariable(symbol) || ts.isParameterOrCatchClauseVariable(symbol) && !isSymbolAssigned(symbol);
56043
+ }
56021
56044
  case 204:
56022
56045
  case 205:
56023
56046
  return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol);
@@ -56925,34 +56948,36 @@ var ts;
56925
56948
  node.kind === 165;
56926
56949
  });
56927
56950
  }
56928
- function isParameterAssigned(symbol) {
56951
+ function isSymbolAssigned(symbol) {
56929
56952
  if (!symbol.valueDeclaration) {
56930
56953
  return false;
56931
56954
  }
56932
- var func = ts.getRootDeclaration(symbol.valueDeclaration).parent;
56933
- var links = getNodeLinks(func);
56955
+ var parent = ts.getRootDeclaration(symbol.valueDeclaration).parent;
56956
+ var links = getNodeLinks(parent);
56934
56957
  if (!(links.flags & 8388608)) {
56935
56958
  links.flags |= 8388608;
56936
- if (!hasParentWithAssignmentsMarked(func)) {
56937
- markParameterAssignments(func);
56959
+ if (!hasParentWithAssignmentsMarked(parent)) {
56960
+ markNodeAssignments(parent);
56938
56961
  }
56939
56962
  }
56940
56963
  return symbol.isAssigned || false;
56941
56964
  }
56942
56965
  function hasParentWithAssignmentsMarked(node) {
56943
- return !!ts.findAncestor(node.parent, function (node) { return ts.isFunctionLike(node) && !!(getNodeLinks(node).flags & 8388608); });
56966
+ return !!ts.findAncestor(node.parent, function (node) {
56967
+ return (ts.isFunctionLike(node) || ts.isCatchClause(node)) && !!(getNodeLinks(node).flags & 8388608);
56968
+ });
56944
56969
  }
56945
- function markParameterAssignments(node) {
56970
+ function markNodeAssignments(node) {
56946
56971
  if (node.kind === 79) {
56947
56972
  if (ts.isAssignmentTarget(node)) {
56948
56973
  var symbol = getResolvedSymbol(node);
56949
- if (symbol.valueDeclaration && ts.getRootDeclaration(symbol.valueDeclaration).kind === 162) {
56974
+ if (ts.isParameterOrCatchClauseVariable(symbol)) {
56950
56975
  symbol.isAssigned = true;
56951
56976
  }
56952
56977
  }
56953
56978
  }
56954
56979
  else {
56955
- ts.forEachChild(node, markParameterAssignments);
56980
+ ts.forEachChild(node, markNodeAssignments);
56956
56981
  }
56957
56982
  }
56958
56983
  function isConstVariable(symbol) {
@@ -56999,7 +57024,19 @@ var ts;
56999
57024
  return substituteConstraints ? mapType(type, function (t) { return t.flags & 465829888 ? getBaseConstraintOrType(t) : t; }) : type;
57000
57025
  }
57001
57026
  function isExportOrExportExpression(location) {
57002
- return !!ts.findAncestor(location, function (e) { return e.parent && ts.isExportAssignment(e.parent) && e.parent.expression === e && ts.isEntityNameExpression(e); });
57027
+ return !!ts.findAncestor(location, function (n) {
57028
+ var parent = n.parent;
57029
+ if (parent === undefined) {
57030
+ return "quit";
57031
+ }
57032
+ if (ts.isExportAssignment(parent)) {
57033
+ return parent.expression === n && ts.isEntityNameExpression(n);
57034
+ }
57035
+ if (ts.isExportSpecifier(parent)) {
57036
+ return parent.name === n || parent.propertyName === n;
57037
+ }
57038
+ return false;
57039
+ });
57003
57040
  }
57004
57041
  function markAliasReferenced(symbol, location) {
57005
57042
  if (isNonLocalAlias(symbol, 111551) && !isInTypeQuery(location) && !getTypeOnlyAliasDeclaration(symbol)) {
@@ -57123,7 +57160,7 @@ var ts;
57123
57160
  var isModuleExports = symbol.flags & 134217728;
57124
57161
  while (flowContainer !== declarationContainer && (flowContainer.kind === 211 ||
57125
57162
  flowContainer.kind === 212 || ts.isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) &&
57126
- (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter && !isParameterAssigned(localOrExportSymbol))) {
57163
+ (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter && !isSymbolAssigned(localOrExportSymbol))) {
57127
57164
  flowContainer = getControlFlowContainer(flowContainer);
57128
57165
  }
57129
57166
  var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || ts.isBindingElement(declaration) ||
@@ -59842,6 +59879,10 @@ var ts;
59842
59879
  }
59843
59880
  return suggestion;
59844
59881
  }
59882
+ function getSuggestedTypeForNonexistentStringLiteralType(source, target) {
59883
+ var candidates = target.types.filter(function (type) { return !!(type.flags & 128); });
59884
+ return ts.getSpellingSuggestion(source.value, candidates, function (type) { return type.value; });
59885
+ }
59845
59886
  function getSpellingSuggestionForName(name, symbols, meaning) {
59846
59887
  return ts.getSpellingSuggestion(name, symbols, getCandidateName);
59847
59888
  function getCandidateName(candidate) {
@@ -67330,6 +67371,7 @@ var ts;
67330
67371
  function checkClassMember(member, memberIsParameterProperty) {
67331
67372
  var hasOverride = ts.hasOverrideModifier(member);
67332
67373
  var hasStatic = ts.isStatic(member);
67374
+ var isJs = ts.isInJSFile(member);
67333
67375
  if (baseWithThis && (hasOverride || compilerOptions.noImplicitOverride)) {
67334
67376
  var declaredProp = member.name && getSymbolAtLocation(member.name) || getSymbolAtLocation(member);
67335
67377
  if (!declaredProp) {
@@ -67343,8 +67385,12 @@ var ts;
67343
67385
  if (prop && !baseProp && hasOverride) {
67344
67386
  var suggestion = getSuggestedSymbolForNonexistentClassMember(ts.symbolName(declaredProp), baseType);
67345
67387
  suggestion ?
67346
- error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, baseClassName, symbolToString(suggestion)) :
67347
- error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, baseClassName);
67388
+ error(member, isJs ?
67389
+ ts.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1 :
67390
+ ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, baseClassName, symbolToString(suggestion)) :
67391
+ error(member, isJs ?
67392
+ ts.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0 :
67393
+ ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, baseClassName);
67348
67394
  }
67349
67395
  else if (prop && (baseProp === null || baseProp === void 0 ? void 0 : baseProp.declarations) && compilerOptions.noImplicitOverride && !nodeInAmbientContext) {
67350
67396
  var baseHasAbstract = ts.some(baseProp.declarations, ts.hasAbstractModifier);
@@ -67353,8 +67399,12 @@ var ts;
67353
67399
  }
67354
67400
  if (!baseHasAbstract) {
67355
67401
  var diag = memberIsParameterProperty ?
67356
- ts.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 :
67357
- ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;
67402
+ isJs ?
67403
+ ts.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 :
67404
+ ts.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 :
67405
+ isJs ?
67406
+ ts.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 :
67407
+ ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;
67358
67408
  error(member, diag, baseClassName);
67359
67409
  }
67360
67410
  else if (ts.hasAbstractModifier(member) && baseHasAbstract) {
@@ -67364,7 +67414,9 @@ var ts;
67364
67414
  }
67365
67415
  else if (hasOverride) {
67366
67416
  var className = typeToString(type);
67367
- error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, className);
67417
+ error(member, isJs ?
67418
+ ts.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class :
67419
+ ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, className);
67368
67420
  }
67369
67421
  }
67370
67422
  }
@@ -92265,7 +92317,7 @@ var ts;
92265
92317
  }
92266
92318
  else {
92267
92319
  ts.forEach(options.lib, function (libFileName, index) {
92268
- processRootFile(ts.combinePaths(defaultLibraryPath, libFileName), true, false, { kind: ts.FileIncludeKind.LibFile, index: index });
92320
+ processRootFile(pathForLibFile(libFileName), true, false, { kind: ts.FileIncludeKind.LibFile, index: index });
92269
92321
  });
92270
92322
  }
92271
92323
  }
@@ -92819,7 +92871,7 @@ var ts;
92819
92871
  return equalityComparer(file.fileName, getDefaultLibraryFileName());
92820
92872
  }
92821
92873
  else {
92822
- return ts.some(options.lib, function (libFileName) { return equalityComparer(file.fileName, ts.combinePaths(defaultLibraryPath, libFileName)); });
92874
+ return ts.some(options.lib, function (libFileName) { return equalityComparer(file.fileName, pathForLibFile(libFileName)); });
92823
92875
  }
92824
92876
  }
92825
92877
  function getDiagnosticsProducingTypeChecker() {
@@ -93328,7 +93380,7 @@ var ts;
93328
93380
  var libName = ts.toFileNameLowerCase(ref.fileName);
93329
93381
  var libFileName = ts.libMap.get(libName);
93330
93382
  if (libFileName) {
93331
- return getSourceFile(ts.combinePaths(defaultLibraryPath, libFileName));
93383
+ return getSourceFile(pathForLibFile(libFileName));
93332
93384
  }
93333
93385
  }
93334
93386
  function getSourceFileFromReference(referencingFile, ref) {
@@ -93694,12 +93746,27 @@ var ts;
93694
93746
  resolvedTypeReferenceDirectives.set(typeReferenceDirective, resolvedTypeReferenceDirective);
93695
93747
  }
93696
93748
  }
93749
+ function pathForLibFile(libFileName) {
93750
+ var components = libFileName.split(".");
93751
+ var path = components[1];
93752
+ var i = 2;
93753
+ while (components[i] && components[i] !== "d") {
93754
+ path += (i === 2 ? "/" : "-") + components[i];
93755
+ i++;
93756
+ }
93757
+ var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_" + libFileName + "__.ts");
93758
+ var localOverrideModuleResult = ts.resolveModuleName("@typescript/" + path, resolveFrom, { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, moduleResolutionCache);
93759
+ if (localOverrideModuleResult === null || localOverrideModuleResult === void 0 ? void 0 : localOverrideModuleResult.resolvedModule) {
93760
+ return localOverrideModuleResult.resolvedModule.resolvedFileName;
93761
+ }
93762
+ return ts.combinePaths(defaultLibraryPath, libFileName);
93763
+ }
93697
93764
  function processLibReferenceDirectives(file) {
93698
93765
  ts.forEach(file.libReferenceDirectives, function (libReference, index) {
93699
93766
  var libName = ts.toFileNameLowerCase(libReference.fileName);
93700
93767
  var libFileName = ts.libMap.get(libName);
93701
93768
  if (libFileName) {
93702
- processRootFile(ts.combinePaths(defaultLibraryPath, libFileName), true, true, { kind: ts.FileIncludeKind.LibReferenceDirective, file: file.path, index: index, });
93769
+ processRootFile(pathForLibFile(libFileName), true, true, { kind: ts.FileIncludeKind.LibReferenceDirective, file: file.path, index: index, });
93703
93770
  }
93704
93771
  else {
93705
93772
  var unqualifiedLibName = ts.removeSuffix(ts.removePrefix(libName, "lib."), ".d.ts");
package/lib/tsserver.js CHANGED
@@ -100,7 +100,7 @@ var ts;
100
100
  // The following is baselined as a literal template type without intervention
101
101
  /** The version of the TypeScript compiler release */
102
102
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
103
- ts.version = ts.versionMajorMinor + ".0-dev.20210914";
103
+ ts.version = ts.versionMajorMinor + ".0-dev.20210919";
104
104
  /* @internal */
105
105
  var Comparison;
106
106
  (function (Comparison) {
@@ -8643,6 +8643,7 @@ var ts;
8643
8643
  Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block: diag(2817, ts.DiagnosticCategory.Error, "Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817", "Property '{0}' has no initializer and is not definitely assigned in a class static block."),
8644
8644
  Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers: diag(2818, ts.DiagnosticCategory.Error, "Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818", "Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),
8645
8645
  Namespace_name_cannot_be_0: diag(2819, ts.DiagnosticCategory.Error, "Namespace_name_cannot_be_0_2819", "Namespace name cannot be '{0}'."),
8646
+ Type_0_is_not_assignable_to_type_1_Did_you_mean_2: diag(2820, ts.DiagnosticCategory.Error, "Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820", "Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),
8646
8647
  Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
8647
8648
  Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
8648
8649
  Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
@@ -8744,6 +8745,11 @@ var ts;
8744
8745
  This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0: diag(4116, ts.DiagnosticCategory.Error, "This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116", "This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),
8745
8746
  This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4117, ts.DiagnosticCategory.Error, "This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117", "This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
8746
8747
  The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized: diag(4118, ts.DiagnosticCategory.Error, "The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118", "The type of this node cannot be serialized because its property '{0}' cannot be serialized."),
8748
+ This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0: diag(4119, ts.DiagnosticCategory.Error, "This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119", "This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),
8749
+ This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0: diag(4120, ts.DiagnosticCategory.Error, "This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120", "This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),
8750
+ This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class: diag(4121, ts.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121", "This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),
8751
+ This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0: diag(4122, ts.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122", "This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),
8752
+ This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4123, ts.DiagnosticCategory.Error, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123", "This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),
8747
8753
  The_current_host_does_not_support_the_0_option: diag(5001, ts.DiagnosticCategory.Error, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
8748
8754
  Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, ts.DiagnosticCategory.Error, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
8749
8755
  File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, ts.DiagnosticCategory.Error, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
@@ -20678,6 +20684,15 @@ var ts;
20678
20684
  return name === "Infinity" || name === "-Infinity" || name === "NaN";
20679
20685
  }
20680
20686
  ts.isInfinityOrNaNString = isInfinityOrNaNString;
20687
+ function isCatchClauseVariableDeclaration(node) {
20688
+ return node.kind === 252 /* VariableDeclaration */ && node.parent.kind === 290 /* CatchClause */;
20689
+ }
20690
+ ts.isCatchClauseVariableDeclaration = isCatchClauseVariableDeclaration;
20691
+ function isParameterOrCatchClauseVariable(symbol) {
20692
+ var declaration = symbol.valueDeclaration && getRootDeclaration(symbol.valueDeclaration);
20693
+ return !!declaration && (ts.isParameter(declaration) || isCatchClauseVariableDeclaration(declaration));
20694
+ }
20695
+ ts.isParameterOrCatchClauseVariable = isParameterOrCatchClauseVariable;
20681
20696
  })(ts || (ts = {}));
20682
20697
  /* @internal */
20683
20698
  var ts;
@@ -61938,6 +61953,13 @@ var ts;
61938
61953
  message = ts.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;
61939
61954
  }
61940
61955
  else {
61956
+ if (source.flags & 128 /* StringLiteral */ && target.flags & 1048576 /* Union */) {
61957
+ var suggestedType = getSuggestedTypeForNonexistentStringLiteralType(source, target);
61958
+ if (suggestedType) {
61959
+ reportError(ts.Diagnostics.Type_0_is_not_assignable_to_type_1_Did_you_mean_2, generalizedSourceType, targetType, typeToString(suggestedType));
61960
+ return;
61961
+ }
61962
+ }
61941
61963
  message = ts.Diagnostics.Type_0_is_not_assignable_to_type_1;
61942
61964
  }
61943
61965
  }
@@ -67098,9 +67120,10 @@ var ts;
67098
67120
  }
67099
67121
  function isConstantReference(node) {
67100
67122
  switch (node.kind) {
67101
- case 79 /* Identifier */:
67123
+ case 79 /* Identifier */: {
67102
67124
  var symbol = getResolvedSymbol(node);
67103
- return isConstVariable(symbol) || !!symbol.valueDeclaration && ts.getRootDeclaration(symbol.valueDeclaration).kind === 162 /* Parameter */ && !isParameterAssigned(symbol);
67125
+ return isConstVariable(symbol) || ts.isParameterOrCatchClauseVariable(symbol) && !isSymbolAssigned(symbol);
67126
+ }
67104
67127
  case 204 /* PropertyAccessExpression */:
67105
67128
  case 205 /* ElementAccessExpression */:
67106
67129
  // The resolvedSymbol property is initialized by checkPropertyAccess or checkElementAccess before we get here.
@@ -68182,35 +68205,37 @@ var ts;
68182
68205
  node.kind === 165 /* PropertyDeclaration */;
68183
68206
  });
68184
68207
  }
68185
- // Check if a parameter is assigned anywhere within its declaring function.
68186
- function isParameterAssigned(symbol) {
68208
+ // Check if a parameter or catch variable is assigned anywhere
68209
+ function isSymbolAssigned(symbol) {
68187
68210
  if (!symbol.valueDeclaration) {
68188
68211
  return false;
68189
68212
  }
68190
- var func = ts.getRootDeclaration(symbol.valueDeclaration).parent;
68191
- var links = getNodeLinks(func);
68213
+ var parent = ts.getRootDeclaration(symbol.valueDeclaration).parent;
68214
+ var links = getNodeLinks(parent);
68192
68215
  if (!(links.flags & 8388608 /* AssignmentsMarked */)) {
68193
68216
  links.flags |= 8388608 /* AssignmentsMarked */;
68194
- if (!hasParentWithAssignmentsMarked(func)) {
68195
- markParameterAssignments(func);
68217
+ if (!hasParentWithAssignmentsMarked(parent)) {
68218
+ markNodeAssignments(parent);
68196
68219
  }
68197
68220
  }
68198
68221
  return symbol.isAssigned || false;
68199
68222
  }
68200
68223
  function hasParentWithAssignmentsMarked(node) {
68201
- return !!ts.findAncestor(node.parent, function (node) { return ts.isFunctionLike(node) && !!(getNodeLinks(node).flags & 8388608 /* AssignmentsMarked */); });
68224
+ return !!ts.findAncestor(node.parent, function (node) {
68225
+ return (ts.isFunctionLike(node) || ts.isCatchClause(node)) && !!(getNodeLinks(node).flags & 8388608 /* AssignmentsMarked */);
68226
+ });
68202
68227
  }
68203
- function markParameterAssignments(node) {
68228
+ function markNodeAssignments(node) {
68204
68229
  if (node.kind === 79 /* Identifier */) {
68205
68230
  if (ts.isAssignmentTarget(node)) {
68206
68231
  var symbol = getResolvedSymbol(node);
68207
- if (symbol.valueDeclaration && ts.getRootDeclaration(symbol.valueDeclaration).kind === 162 /* Parameter */) {
68232
+ if (ts.isParameterOrCatchClauseVariable(symbol)) {
68208
68233
  symbol.isAssigned = true;
68209
68234
  }
68210
68235
  }
68211
68236
  }
68212
68237
  else {
68213
- ts.forEachChild(node, markParameterAssignments);
68238
+ ts.forEachChild(node, markNodeAssignments);
68214
68239
  }
68215
68240
  }
68216
68241
  function isConstVariable(symbol) {
@@ -68270,7 +68295,19 @@ var ts;
68270
68295
  return substituteConstraints ? mapType(type, function (t) { return t.flags & 465829888 /* Instantiable */ ? getBaseConstraintOrType(t) : t; }) : type;
68271
68296
  }
68272
68297
  function isExportOrExportExpression(location) {
68273
- return !!ts.findAncestor(location, function (e) { return e.parent && ts.isExportAssignment(e.parent) && e.parent.expression === e && ts.isEntityNameExpression(e); });
68298
+ return !!ts.findAncestor(location, function (n) {
68299
+ var parent = n.parent;
68300
+ if (parent === undefined) {
68301
+ return "quit";
68302
+ }
68303
+ if (ts.isExportAssignment(parent)) {
68304
+ return parent.expression === n && ts.isEntityNameExpression(n);
68305
+ }
68306
+ if (ts.isExportSpecifier(parent)) {
68307
+ return parent.name === n || parent.propertyName === n;
68308
+ }
68309
+ return false;
68310
+ });
68274
68311
  }
68275
68312
  function markAliasReferenced(symbol, location) {
68276
68313
  if (isNonLocalAlias(symbol, /*excludes*/ 111551 /* Value */) && !isInTypeQuery(location) && !getTypeOnlyAliasDeclaration(symbol)) {
@@ -68419,7 +68456,7 @@ var ts;
68419
68456
  // analysis to include the immediately enclosing function.
68420
68457
  while (flowContainer !== declarationContainer && (flowContainer.kind === 211 /* FunctionExpression */ ||
68421
68458
  flowContainer.kind === 212 /* ArrowFunction */ || ts.isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) &&
68422
- (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter && !isParameterAssigned(localOrExportSymbol))) {
68459
+ (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter && !isSymbolAssigned(localOrExportSymbol))) {
68423
68460
  flowContainer = getControlFlowContainer(flowContainer);
68424
68461
  }
68425
68462
  // We only look for uninitialized variables in strict null checking mode, and only when we can analyze
@@ -71649,6 +71686,10 @@ var ts;
71649
71686
  }
71650
71687
  return suggestion;
71651
71688
  }
71689
+ function getSuggestedTypeForNonexistentStringLiteralType(source, target) {
71690
+ var candidates = target.types.filter(function (type) { return !!(type.flags & 128 /* StringLiteral */); });
71691
+ return ts.getSpellingSuggestion(source.value, candidates, function (type) { return type.value; });
71692
+ }
71652
71693
  /**
71653
71694
  * Given a name and a list of symbols whose names are *not* equal to the name, return a spelling suggestion if there is one that is close enough.
71654
71695
  * Names less than length 3 only check for case-insensitive equality, not levenshtein distance.
@@ -80477,6 +80518,7 @@ var ts;
80477
80518
  function checkClassMember(member, memberIsParameterProperty) {
80478
80519
  var hasOverride = ts.hasOverrideModifier(member);
80479
80520
  var hasStatic = ts.isStatic(member);
80521
+ var isJs = ts.isInJSFile(member);
80480
80522
  if (baseWithThis && (hasOverride || compilerOptions.noImplicitOverride)) {
80481
80523
  var declaredProp = member.name && getSymbolAtLocation(member.name) || getSymbolAtLocation(member);
80482
80524
  if (!declaredProp) {
@@ -80490,8 +80532,12 @@ var ts;
80490
80532
  if (prop && !baseProp && hasOverride) {
80491
80533
  var suggestion = getSuggestedSymbolForNonexistentClassMember(ts.symbolName(declaredProp), baseType);
80492
80534
  suggestion ?
80493
- error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, baseClassName, symbolToString(suggestion)) :
80494
- error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, baseClassName);
80535
+ error(member, isJs ?
80536
+ ts.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1 :
80537
+ ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, baseClassName, symbolToString(suggestion)) :
80538
+ error(member, isJs ?
80539
+ ts.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0 :
80540
+ ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, baseClassName);
80495
80541
  }
80496
80542
  else if (prop && (baseProp === null || baseProp === void 0 ? void 0 : baseProp.declarations) && compilerOptions.noImplicitOverride && !nodeInAmbientContext) {
80497
80543
  var baseHasAbstract = ts.some(baseProp.declarations, ts.hasAbstractModifier);
@@ -80500,8 +80546,12 @@ var ts;
80500
80546
  }
80501
80547
  if (!baseHasAbstract) {
80502
80548
  var diag = memberIsParameterProperty ?
80503
- ts.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 :
80504
- ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;
80549
+ isJs ?
80550
+ ts.Diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 :
80551
+ ts.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 :
80552
+ isJs ?
80553
+ ts.Diagnostics.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0 :
80554
+ ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;
80505
80555
  error(member, diag, baseClassName);
80506
80556
  }
80507
80557
  else if (ts.hasAbstractModifier(member) && baseHasAbstract) {
@@ -80511,7 +80561,9 @@ var ts;
80511
80561
  }
80512
80562
  else if (hasOverride) {
80513
80563
  var className = typeToString(type);
80514
- error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, className);
80564
+ error(member, isJs ?
80565
+ ts.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class :
80566
+ ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, className);
80515
80567
  }
80516
80568
  }
80517
80569
  }
@@ -112017,7 +112069,7 @@ var ts;
112017
112069
  }
112018
112070
  else {
112019
112071
  ts.forEach(options.lib, function (libFileName, index) {
112020
- processRootFile(ts.combinePaths(defaultLibraryPath, libFileName), /*isDefaultLib*/ true, /*ignoreNoDefaultLib*/ false, { kind: ts.FileIncludeKind.LibFile, index: index });
112072
+ processRootFile(pathForLibFile(libFileName), /*isDefaultLib*/ true, /*ignoreNoDefaultLib*/ false, { kind: ts.FileIncludeKind.LibFile, index: index });
112021
112073
  });
112022
112074
  }
112023
112075
  }
@@ -112679,7 +112731,7 @@ var ts;
112679
112731
  return equalityComparer(file.fileName, getDefaultLibraryFileName());
112680
112732
  }
112681
112733
  else {
112682
- return ts.some(options.lib, function (libFileName) { return equalityComparer(file.fileName, ts.combinePaths(defaultLibraryPath, libFileName)); });
112734
+ return ts.some(options.lib, function (libFileName) { return equalityComparer(file.fileName, pathForLibFile(libFileName)); });
112683
112735
  }
112684
112736
  }
112685
112737
  function getDiagnosticsProducingTypeChecker() {
@@ -113261,7 +113313,7 @@ var ts;
113261
113313
  var libName = ts.toFileNameLowerCase(ref.fileName);
113262
113314
  var libFileName = ts.libMap.get(libName);
113263
113315
  if (libFileName) {
113264
- return getSourceFile(ts.combinePaths(defaultLibraryPath, libFileName));
113316
+ return getSourceFile(pathForLibFile(libFileName));
113265
113317
  }
113266
113318
  }
113267
113319
  /** This should have similar behavior to 'processSourceFile' without diagnostics or mutation. */
@@ -113672,13 +113724,31 @@ var ts;
113672
113724
  resolvedTypeReferenceDirectives.set(typeReferenceDirective, resolvedTypeReferenceDirective);
113673
113725
  }
113674
113726
  }
113727
+ function pathForLibFile(libFileName) {
113728
+ // Support resolving to lib.dom.d.ts -> @typescript/dom, and
113729
+ // lib.dom.iterable.d.ts -> @typescript/dom/iterable
113730
+ // lib.es2015.symbol.wellknown.d.ts -> @typescript/es2015/symbol-wellknown
113731
+ var components = libFileName.split(".");
113732
+ var path = components[1];
113733
+ var i = 2;
113734
+ while (components[i] && components[i] !== "d") {
113735
+ path += (i === 2 ? "/" : "-") + components[i];
113736
+ i++;
113737
+ }
113738
+ var resolveFrom = ts.combinePaths(currentDirectory, "__lib_node_modules_lookup_" + libFileName + "__.ts");
113739
+ var localOverrideModuleResult = ts.resolveModuleName("@typescript/" + path, resolveFrom, { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, moduleResolutionCache);
113740
+ if (localOverrideModuleResult === null || localOverrideModuleResult === void 0 ? void 0 : localOverrideModuleResult.resolvedModule) {
113741
+ return localOverrideModuleResult.resolvedModule.resolvedFileName;
113742
+ }
113743
+ return ts.combinePaths(defaultLibraryPath, libFileName);
113744
+ }
113675
113745
  function processLibReferenceDirectives(file) {
113676
113746
  ts.forEach(file.libReferenceDirectives, function (libReference, index) {
113677
113747
  var libName = ts.toFileNameLowerCase(libReference.fileName);
113678
113748
  var libFileName = ts.libMap.get(libName);
113679
113749
  if (libFileName) {
113680
113750
  // we ignore any 'no-default-lib' reference set on this file.
113681
- processRootFile(ts.combinePaths(defaultLibraryPath, libFileName), /*isDefaultLib*/ true, /*ignoreNoDefaultLib*/ true, { kind: ts.FileIncludeKind.LibReferenceDirective, file: file.path, index: index, });
113751
+ processRootFile(pathForLibFile(libFileName), /*isDefaultLib*/ true, /*ignoreNoDefaultLib*/ true, { kind: ts.FileIncludeKind.LibReferenceDirective, file: file.path, index: index, });
113682
113752
  }
113683
113753
  else {
113684
113754
  var unqualifiedLibName = ts.removeSuffix(ts.removePrefix(libName, "lib."), ".d.ts");
@@ -140309,11 +140379,11 @@ var ts;
140309
140379
  var leadingTrivia = formattingScanner.getCurrentLeadingTrivia();
140310
140380
  if (leadingTrivia) {
140311
140381
  indentTriviaItems(leadingTrivia, indentation, /*indentNextTokenOrTrivia*/ false, function (item) { return processRange(item, sourceFile.getLineAndCharacterOfPosition(item.pos), enclosingNode, enclosingNode, /*dynamicIndentation*/ undefined); });
140382
+ if (options.trimTrailingWhitespace !== false) {
140383
+ trimTrailingWhitespacesForRemainingRange(leadingTrivia);
140384
+ }
140312
140385
  }
140313
140386
  }
140314
- if (options.trimTrailingWhitespace !== false) {
140315
- trimTrailingWhitespacesForRemainingRange();
140316
- }
140317
140387
  return edits;
140318
140388
  // local functions
140319
140389
  /** Tries to compute the indentation for a list element.
@@ -140882,12 +140952,27 @@ var ts;
140882
140952
  return -1;
140883
140953
  }
140884
140954
  /**
140885
- * Trimming will be done for lines after the previous range
140955
+ * Trimming will be done for lines after the previous range.
140956
+ * Exclude comments as they had been previously processed.
140886
140957
  */
140887
- function trimTrailingWhitespacesForRemainingRange() {
140888
- var startPosition = previousRange ? previousRange.end : originalRange.pos;
140889
- var startLine = sourceFile.getLineAndCharacterOfPosition(startPosition).line;
140890
- var endLine = sourceFile.getLineAndCharacterOfPosition(originalRange.end).line;
140958
+ function trimTrailingWhitespacesForRemainingRange(trivias) {
140959
+ var startPos = previousRange ? previousRange.end : originalRange.pos;
140960
+ for (var _i = 0, trivias_1 = trivias; _i < trivias_1.length; _i++) {
140961
+ var trivia = trivias_1[_i];
140962
+ if (ts.isComment(trivia.kind)) {
140963
+ if (startPos < trivia.pos) {
140964
+ trimTrailingWitespacesForPositions(startPos, trivia.pos - 1, previousRange);
140965
+ }
140966
+ startPos = trivia.end + 1;
140967
+ }
140968
+ }
140969
+ if (startPos < originalRange.end) {
140970
+ trimTrailingWitespacesForPositions(startPos, originalRange.end, previousRange);
140971
+ }
140972
+ }
140973
+ function trimTrailingWitespacesForPositions(startPos, endPos, previousRange) {
140974
+ var startLine = sourceFile.getLineAndCharacterOfPosition(startPos).line;
140975
+ var endLine = sourceFile.getLineAndCharacterOfPosition(endPos).line;
140891
140976
  trimTrailingWhitespacesForLines(startLine, endLine + 1, previousRange);
140892
140977
  }
140893
140978
  function recordDelete(start, len) {
@@ -146832,6 +146917,7 @@ var ts;
146832
146917
  ts.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,
146833
146918
  ts.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,
146834
146919
  ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,
146920
+ ts.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,
146835
146921
  // for JSX class components
146836
146922
  ts.Diagnostics.No_overload_matches_this_call.code,
146837
146923
  // for JSX FC
@@ -2722,8 +2722,8 @@ declare namespace ts {
2722
2722
  root: ConditionalRoot;
2723
2723
  checkType: Type;
2724
2724
  extendsType: Type;
2725
- resolvedTrueType: Type;
2726
- resolvedFalseType: Type;
2725
+ resolvedTrueType?: Type;
2726
+ resolvedFalseType?: Type;
2727
2727
  }
2728
2728
  export interface TemplateLiteralType extends InstantiableType {
2729
2729
  texts: readonly string[];