@typescript-deploys/pr-build 5.4.0-pr-57133-2 → 5.4.0-pr-57230-11

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/README.md CHANGED
@@ -47,4 +47,4 @@ with any additional questions or comments.
47
47
 
48
48
  ## Roadmap
49
49
 
50
- For details on our planned features and future direction please refer to our [roadmap](https://github.com/microsoft/TypeScript/wiki/Roadmap).
50
+ For details on our planned features and future direction, please refer to our [roadmap](https://github.com/microsoft/TypeScript/wiki/Roadmap).
@@ -1628,7 +1628,7 @@
1628
1628
  "Unexpected_token_1012": "Neočekávaný token",
1629
1629
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Neočekávaný token. Očekával se konstruktor, metoda, přístupový objekt nebo vlastnost.",
1630
1630
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Neočekávaný token. Očekával se název parametru typu bez složených závorek.",
1631
- "Unexpected_token_Did_you_mean_or_gt_1382": "Neočekávaný token. Měli jste na mysli {'>'} nebo >?",
1631
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Neočekávaný token. Měli jste na mysli {'>'} nebo >?",
1632
1632
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Neočekávaný token. Měli jste na mysli {'}'} nebo }?",
1633
1633
  "Unexpected_token_expected_1179": "Neočekávaný token. Očekává se znak {.",
1634
1634
  "Unknown_build_option_0_5072": "Neznámá možnost sestavení {0}",
@@ -1628,7 +1628,7 @@
1628
1628
  "Unexpected_token_1012": "Unerwartetes Token.",
1629
1629
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Unerwartetes Token. Ein Konstruktor, eine Methode, eine Zugriffsmethode oder eine Eigenschaft wurde erwartet.",
1630
1630
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Unerwartetes Token. Es wurde ein Typparametername ohne geschweifte Klammern erwartet.",
1631
- "Unexpected_token_Did_you_mean_or_gt_1382": "Unerwartetes Token. Meinten Sie \"{'>'}\" oder \">\"?",
1631
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Unerwartetes Token. Meinten Sie \"{'>'}\" oder \">\"?",
1632
1632
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Unerwartetes Token. Meinten Sie \"{'}'}\" oder \"}\"?",
1633
1633
  "Unexpected_token_expected_1179": "Unerwartetes Token. \"{\" wurde erwartet.",
1634
1634
  "Unknown_build_option_0_5072": "Unbekannte Buildoption \"{0}\".",
@@ -1628,7 +1628,7 @@
1628
1628
  "Unexpected_token_1012": "Token inesperado.",
1629
1629
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Token inesperado. Se esperaba un constructor, un método, un descriptor de acceso o una propiedad.",
1630
1630
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Token inesperado. Se esperaba un nombre de parámetro de tipo sin llaves.",
1631
- "Unexpected_token_Did_you_mean_or_gt_1382": "Token inesperado. ¿Pretendía usar \"{'>'}\" o \">\"?",
1631
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Token inesperado. ¿Pretendía usar \"{'>'}\" o \">\"?",
1632
1632
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Token inesperado. ¿Pretendía usar \"{'}'}\" o \"}\"?",
1633
1633
  "Unexpected_token_expected_1179": "Token inesperado. Se esperaba \"{\".",
1634
1634
  "Unknown_build_option_0_5072": "Opción de compilación \"{0}\" desconocida.",
@@ -1628,7 +1628,7 @@
1628
1628
  "Unexpected_token_1012": "Jeton inattendu.",
1629
1629
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Jeton inattendu. Un constructeur, une méthode, un accesseur ou une propriété est attendu.",
1630
1630
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Jeton inattendu. Un nom de paramètre de type est attendu sans accolades.",
1631
- "Unexpected_token_Did_you_mean_or_gt_1382": "Jeton inattendu. Est-ce que vous avez voulu utiliser '{'>'}' ou '>' ?",
1631
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Jeton inattendu. Est-ce que vous avez voulu utiliser '{'>'}' ou '>' ?",
1632
1632
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Jeton inattendu. Est-ce que vous avez voulu utiliser '{'}'}' ou '}' ?",
1633
1633
  "Unexpected_token_expected_1179": "Jeton inattendu. '{' est attendu.",
1634
1634
  "Unknown_build_option_0_5072": "Option de build inconnue : '{0}'.",
@@ -1628,7 +1628,7 @@
1628
1628
  "Unexpected_token_1012": "Token imprevisto.",
1629
1629
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Token imprevisto. È previsto un costruttore, un metodo, una funzione di accesso o una proprietà.",
1630
1630
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Token imprevisto. Sono previsti nomi di parametro senza parentesi graffe.",
1631
- "Unexpected_token_Did_you_mean_or_gt_1382": "Token imprevisto. Si intendeva `{'>'}` o `>`?",
1631
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Token imprevisto. Si intendeva `{'>'}` o `>`?",
1632
1632
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Token imprevisto. Si intendeva `{'}'}` o `}`?",
1633
1633
  "Unexpected_token_expected_1179": "Token imprevisto. È previsto '{'.",
1634
1634
  "Unknown_build_option_0_5072": "L'opzione di compilazione '{0}' è sconosciuta.",
@@ -1628,7 +1628,7 @@
1628
1628
  "Unexpected_token_1012": "予期しないトークンです。",
1629
1629
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "予期しないトークンです。コンストラクター、メソッド、アクセサー、またはプロパティが必要です。",
1630
1630
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "予期しないトークンです。型パラメーター名には、中かっこを含めることはできません。",
1631
- "Unexpected_token_Did_you_mean_or_gt_1382": "予期しないトークンです。`{'>'}` または `>` を意図していましたか?",
1631
+ "Unexpected_token_Did_you_mean_or_gt_1382": "予期しないトークンです。`{'>'}` または `>` を意図していましたか?",
1632
1632
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "予期しないトークンです。`{'}'}` または `}` を意図していましたか?",
1633
1633
  "Unexpected_token_expected_1179": "予期しないトークンです。'{' が必要です。",
1634
1634
  "Unknown_build_option_0_5072": "'{0}' は不明なビルド オプションです。",
@@ -1628,7 +1628,7 @@
1628
1628
  "Unexpected_token_1012": "예기치 않은 토큰입니다.",
1629
1629
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "예기치 않은 토큰입니다. 생성자, 메서드, 접근자 또는 속성이 필요합니다.",
1630
1630
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "예기치 않은 토큰입니다. 중괄호가 없는 형식 매개 변수 이름이 필요합니다.",
1631
- "Unexpected_token_Did_you_mean_or_gt_1382": "예기치 않은 토큰입니다. '{'>'}' 또는 '>'를 사용하시겠습니까?",
1631
+ "Unexpected_token_Did_you_mean_or_gt_1382": "예기치 않은 토큰입니다. '{'>'}' 또는 '>'를 사용하시겠습니까?",
1632
1632
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "예기치 않은 토큰입니다. '{'}'}' 또는 '}'를 사용하시겠습니까?",
1633
1633
  "Unexpected_token_expected_1179": "예기치 않은 토큰입니다. '{'가 있어야 합니다.",
1634
1634
  "Unknown_build_option_0_5072": "알 수 없는 빌드 옵션 '{0}'입니다.",
@@ -27,3 +27,49 @@ interface MapConstructor {
27
27
  keySelector: (item: T, index: number) => K,
28
28
  ): Map<K, T[]>;
29
29
  }
30
+
31
+ interface SetLike<T> {
32
+ /**
33
+ * Despite its name, returns an iterable of the values in the set-like.
34
+ */
35
+ keys(): Iterable<T>;
36
+ /**
37
+ * @returns a boolean indicating whether an element with the specified value exists in the set-like or not.
38
+ */
39
+ has(value: T): boolean;
40
+ /**
41
+ * @returns the number of (unique) elements in the set-like.
42
+ */
43
+ readonly size: number;
44
+ }
45
+
46
+ interface Set<T> {
47
+ /**
48
+ * @returns a new Set containing all the elements in this Set and also all the elements in the argument.
49
+ */
50
+ union(other: SetLike<T>): Set<T>;
51
+ /**
52
+ * @returns a new Set containing all the elements which are both in this Set and in the argument.
53
+ */
54
+ intersection(other: SetLike<T>): Set<T>;
55
+ /**
56
+ * @returns a new Set containing all the elements in this Set which are not also in the argument.
57
+ */
58
+ difference(other: SetLike<T>): Set<T>;
59
+ /**
60
+ * @returns a new Set containing all the elements in this Set which are in this or in the argument, but not in both.
61
+ */
62
+ symmetricDifference(other: SetLike<T>): Set<T>;
63
+ /**
64
+ * @returns a boolean indicating whether all the elements in this Set are also in the argument.
65
+ */
66
+ isSubsetOf(other: SetLike<T>): Set<T>;
67
+ /**
68
+ * @returns a boolean indicating whether all the elements in the argument are also in this Set.
69
+ */
70
+ isSupersetOf(other: SetLike<T>): Set<T>;
71
+ /**
72
+ * @returns a boolean indicating whether this Set has no elements in common with the argument.
73
+ */
74
+ isDisjointFrom(other: SetLike<T>): Set<T>;
75
+ }
@@ -1628,7 +1628,7 @@
1628
1628
  "Unexpected_token_1012": "Nieoczekiwany token.",
1629
1629
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Nieoczekiwany token. Oczekiwano konstruktora, metody, metody dostępu lub właściwości.",
1630
1630
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Nieoczekiwany token. Oczekiwano nazwy parametru typu bez nawiasów klamrowych.",
1631
- "Unexpected_token_Did_you_mean_or_gt_1382": "Nieoczekiwany token. Czy chodziło o „{'>'}” lub „>”?",
1631
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Nieoczekiwany token. Czy chodziło o „{'>'}” lub „&gt;”?",
1632
1632
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Nieoczekiwany token. Czy chodziło o „{'}'}” lub „&rbrace;”?",
1633
1633
  "Unexpected_token_expected_1179": "Nieoczekiwany token. Oczekiwano znaku „{”.",
1634
1634
  "Unknown_build_option_0_5072": "Nieznana opcja kompilacji „{0}”.",
@@ -1628,7 +1628,7 @@
1628
1628
  "Unexpected_token_1012": "Token inesperado.",
1629
1629
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Token inesperado. Um construtor, método, acessador ou propriedade era esperado.",
1630
1630
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Token inesperado. Era esperado um nome de parâmetro de tipo sem chaves.",
1631
- "Unexpected_token_Did_you_mean_or_gt_1382": "Token inesperado. Você quis dizer '{'>'}' ou '>'?",
1631
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Token inesperado. Você quis dizer '{'>'}' ou '&gt;'?",
1632
1632
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Token inesperado. Você quis dizer '{'}'}' ou '&rbrace;'?",
1633
1633
  "Unexpected_token_expected_1179": "Token inesperado. '{' esperado.",
1634
1634
  "Unknown_build_option_0_5072": "Opção de build '{0}' desconhecida.",
@@ -1628,7 +1628,7 @@
1628
1628
  "Unexpected_token_1012": "Неожиданный токен.",
1629
1629
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Неожиданный токен. Ожидался конструктор, метод, метод доступа или свойство.",
1630
1630
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Непредвиденная лексема. Ожидалось имя параметра типа без фигурных скобок.",
1631
- "Unexpected_token_Did_you_mean_or_gt_1382": "Непредвиденный токен. Возможно, вы хотели использовать \"{'>'}\" или \">\"?",
1631
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Непредвиденный токен. Возможно, вы хотели использовать \"{'>'}\" или \"&gt;\"?",
1632
1632
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Непредвиденный токен. Возможно, вы хотели использовать \"{'}'}\" или \"&rbrace;\"?",
1633
1633
  "Unexpected_token_expected_1179": "Неожиданный токен. Ожидался символ \"{\".",
1634
1634
  "Unknown_build_option_0_5072": "Неизвестный параметр сборки \"{0}\".",
@@ -1628,7 +1628,7 @@
1628
1628
  "Unexpected_token_1012": "Beklenmeyen belirteç.",
1629
1629
  "Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068": "Beklenmeyen belirteç. Bir oluşturucu, metot, erişimci veya özellik bekleniyordu.",
1630
1630
  "Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069": "Beklenmeyen belirteç. Küme ayracı olmadan bir tür parametresi adı bekleniyordu.",
1631
- "Unexpected_token_Did_you_mean_or_gt_1382": "Beklenmeyen belirteç. Şunu mu demek istediniz: `{'>'}` veya `>`?",
1631
+ "Unexpected_token_Did_you_mean_or_gt_1382": "Beklenmeyen belirteç. Şunu mu demek istediniz: `{'>'}` veya `&gt;`?",
1632
1632
  "Unexpected_token_Did_you_mean_or_rbrace_1381": "Beklenmeyen belirteç. Şunu mu demek istediniz: `{'}'}` veya `&rbrace;`?",
1633
1633
  "Unexpected_token_expected_1179": "Beklenmeyen belirteç. '{' bekleniyordu.",
1634
1634
  "Unknown_build_option_0_5072": "Bilinmeyen '{0}' derleme seçeneği.",
package/lib/tsc.js CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.4";
21
- var version = `${versionMajorMinor}.0-insiders.20240123`;
21
+ var version = `${versionMajorMinor}.0-insiders.20240131`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -3635,6 +3635,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
3635
3635
  TypeFlags2[TypeFlags2["NonPrimitive"] = 67108864] = "NonPrimitive";
3636
3636
  TypeFlags2[TypeFlags2["TemplateLiteral"] = 134217728] = "TemplateLiteral";
3637
3637
  TypeFlags2[TypeFlags2["StringMapping"] = 268435456] = "StringMapping";
3638
+ TypeFlags2[TypeFlags2["Reserved1"] = 536870912] = "Reserved1";
3638
3639
  TypeFlags2[TypeFlags2["AnyOrUnknown"] = 3] = "AnyOrUnknown";
3639
3640
  TypeFlags2[TypeFlags2["Nullable"] = 98304] = "Nullable";
3640
3641
  TypeFlags2[TypeFlags2["Literal"] = 2944] = "Literal";
@@ -3672,7 +3673,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
3672
3673
  TypeFlags2[TypeFlags2["IncludesWildcard"] = 8388608 /* IndexedAccess */] = "IncludesWildcard";
3673
3674
  TypeFlags2[TypeFlags2["IncludesEmptyObject"] = 16777216 /* Conditional */] = "IncludesEmptyObject";
3674
3675
  TypeFlags2[TypeFlags2["IncludesInstantiable"] = 33554432 /* Substitution */] = "IncludesInstantiable";
3675
- TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 268435456 /* StringMapping */] = "IncludesConstrainedTypeVariable";
3676
+ TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 536870912 /* Reserved1 */] = "IncludesConstrainedTypeVariable";
3676
3677
  TypeFlags2[TypeFlags2["NotPrimitiveUnion"] = 36323331] = "NotPrimitiveUnion";
3677
3678
  return TypeFlags2;
3678
3679
  })(TypeFlags || {});
@@ -42806,7 +42807,11 @@ function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFi
42806
42807
  if (modulePath.isRedirect) {
42807
42808
  redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
42808
42809
  } else if (pathIsBareSpecifier(local)) {
42809
- pathsSpecifiers = append(pathsSpecifiers, local);
42810
+ if (pathContainsNodeModules(local)) {
42811
+ relativeSpecifiers = append(relativeSpecifiers, local);
42812
+ } else {
42813
+ pathsSpecifiers = append(pathsSpecifiers, local);
42814
+ }
42810
42815
  } else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) {
42811
42816
  relativeSpecifiers = append(relativeSpecifiers, local);
42812
42817
  }
@@ -45910,6 +45915,11 @@ function createTypeChecker(host) {
45910
45915
  diagnosticMessage = error(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationName);
45911
45916
  } else if (result.flags & 256 /* RegularEnum */) {
45912
45917
  diagnosticMessage = error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName);
45918
+ } else {
45919
+ Debug.assert(!!(result.flags & 128 /* ConstEnum */));
45920
+ if (getIsolatedModules(compilerOptions)) {
45921
+ diagnosticMessage = error(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName);
45922
+ }
45913
45923
  }
45914
45924
  if (diagnosticMessage) {
45915
45925
  addRelatedInfo(diagnosticMessage, createDiagnosticForNode(declaration, Diagnostics._0_is_declared_here, declarationName));
@@ -55059,7 +55069,7 @@ function createTypeChecker(host) {
55059
55069
  return simplified !== type ? simplified : getConstraintOfType(type);
55060
55070
  }
55061
55071
  function getConstraintFromIndexedAccess(type) {
55062
- if (isMappedTypeGenericIndexedAccess(type) || isGenericMappedType(type.objectType)) {
55072
+ if (isMappedTypeGenericIndexedAccess(type)) {
55063
55073
  return substituteIndexedMappedType(type.objectType, type.indexType);
55064
55074
  }
55065
55075
  const indexConstraint = getSimplifiedTypeOrConstraint(type.indexType);
@@ -55572,10 +55582,14 @@ function createTypeChecker(host) {
55572
55582
  return errorInfo;
55573
55583
  }
55574
55584
  function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment, includeTypeOnlyMembers) {
55585
+ var _a, _b;
55575
55586
  type = getReducedApparentType(type);
55576
55587
  if (type.flags & 524288 /* Object */) {
55577
55588
  const resolved = resolveStructuredTypeMembers(type);
55578
55589
  const symbol = resolved.members.get(name);
55590
+ if (symbol && !includeTypeOnlyMembers && ((_a = type.symbol) == null ? void 0 : _a.flags) & 512 /* ValueModule */ && ((_b = getSymbolLinks(type.symbol).typeOnlyExportStarMap) == null ? void 0 : _b.has(name))) {
55591
+ return void 0;
55592
+ }
55579
55593
  if (symbol && symbolIsValue(symbol, includeTypeOnlyMembers)) {
55580
55594
  return symbol;
55581
55595
  }
@@ -57478,7 +57492,7 @@ function createTypeChecker(host) {
57478
57492
  if (flags & 465829888 /* Instantiable */)
57479
57493
  includes |= 33554432 /* IncludesInstantiable */;
57480
57494
  if (flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */)
57481
- includes |= 268435456 /* IncludesConstrainedTypeVariable */;
57495
+ includes |= 536870912 /* IncludesConstrainedTypeVariable */;
57482
57496
  if (type === wildcardType)
57483
57497
  includes |= 8388608 /* IncludesWildcard */;
57484
57498
  if (!strictNullChecks && flags & 98304 /* Nullable */) {
@@ -57571,18 +57585,21 @@ function createTypeChecker(host) {
57571
57585
  }
57572
57586
  }
57573
57587
  function removeStringLiteralsMatchedByTemplateLiterals(types) {
57574
- const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t));
57588
+ const templates = filter(types, isPatternLiteralType);
57575
57589
  if (templates.length) {
57576
57590
  let i = types.length;
57577
57591
  while (i > 0) {
57578
57592
  i--;
57579
57593
  const t = types[i];
57580
- if (t.flags & 128 /* StringLiteral */ && some(templates, (template) => isTypeMatchedByTemplateLiteralType(t, template))) {
57594
+ if (t.flags & 128 /* StringLiteral */ && some(templates, (template) => isTypeMatchedByTemplateLiteralOrStringMapping(t, template))) {
57581
57595
  orderedRemoveItemAt(types, i);
57582
57596
  }
57583
57597
  }
57584
57598
  }
57585
57599
  }
57600
+ function isTypeMatchedByTemplateLiteralOrStringMapping(type, template) {
57601
+ return template.flags & 134217728 /* TemplateLiteral */ ? isTypeMatchedByTemplateLiteralType(type, template) : isMemberOfStringMapping(type, template);
57602
+ }
57586
57603
  function removeConstrainedTypeVariables(types) {
57587
57604
  const typeVariables = [];
57588
57605
  for (const type of types) {
@@ -57680,10 +57697,10 @@ function createTypeChecker(host) {
57680
57697
  if (includes & (32 /* Enum */ | 2944 /* Literal */ | 8192 /* UniqueESSymbol */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || includes & 16384 /* Void */ && includes & 32768 /* Undefined */) {
57681
57698
  removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & 2 /* Subtype */));
57682
57699
  }
57683
- if (includes & 128 /* StringLiteral */ && includes & 134217728 /* TemplateLiteral */) {
57700
+ if (includes & 128 /* StringLiteral */ && includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) {
57684
57701
  removeStringLiteralsMatchedByTemplateLiterals(typeSet);
57685
57702
  }
57686
- if (includes & 268435456 /* IncludesConstrainedTypeVariable */) {
57703
+ if (includes & 536870912 /* IncludesConstrainedTypeVariable */) {
57687
57704
  removeConstrainedTypeVariables(typeSet);
57688
57705
  }
57689
57706
  if (unionReduction === 2 /* Subtype */) {
@@ -57847,7 +57864,7 @@ function createTypeChecker(host) {
57847
57864
  while (i > 0) {
57848
57865
  i--;
57849
57866
  const t = types[i];
57850
- if (!(t.flags & 134217728 /* TemplateLiteral */))
57867
+ if (!(t.flags & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)))
57851
57868
  continue;
57852
57869
  for (const t2 of literals) {
57853
57870
  if (isTypeSubtypeOf(t2, t)) {
@@ -57921,7 +57938,7 @@ function createTypeChecker(host) {
57921
57938
  if (strictNullChecks && includes & 98304 /* Nullable */ && includes & (524288 /* Object */ | 67108864 /* NonPrimitive */ | 16777216 /* IncludesEmptyObject */) || includes & 67108864 /* NonPrimitive */ && includes & (469892092 /* DisjointDomains */ & ~67108864 /* NonPrimitive */) || includes & 402653316 /* StringLike */ && includes & (469892092 /* DisjointDomains */ & ~402653316 /* StringLike */) || includes & 296 /* NumberLike */ && includes & (469892092 /* DisjointDomains */ & ~296 /* NumberLike */) || includes & 2112 /* BigIntLike */ && includes & (469892092 /* DisjointDomains */ & ~2112 /* BigIntLike */) || includes & 12288 /* ESSymbolLike */ && includes & (469892092 /* DisjointDomains */ & ~12288 /* ESSymbolLike */) || includes & 49152 /* VoidLike */ && includes & (469892092 /* DisjointDomains */ & ~49152 /* VoidLike */)) {
57922
57939
  return neverType;
57923
57940
  }
57924
- if (includes & 134217728 /* TemplateLiteral */ && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) {
57941
+ if (includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) {
57925
57942
  return neverType;
57926
57943
  }
57927
57944
  if (includes & 1 /* Any */) {
@@ -76090,19 +76107,16 @@ function createTypeChecker(host) {
76090
76107
  }
76091
76108
  }
76092
76109
  }
76093
- function getNonGenericReturnTypeOfSingleCallSignature(funcType) {
76110
+ function getReturnTypeOfSingleNonGenericCallSignature(funcType) {
76094
76111
  const signature = getSingleCallSignature(funcType);
76095
- if (signature) {
76096
- const returnType = getReturnTypeOfSignature(signature);
76097
- if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
76098
- return returnType;
76099
- }
76112
+ if (signature && !signature.typeParameters) {
76113
+ return getReturnTypeOfSignature(signature);
76100
76114
  }
76101
76115
  }
76102
76116
  function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
76103
76117
  const funcType = checkExpression(expr.expression);
76104
76118
  const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
76105
- const returnType = getNonGenericReturnTypeOfSingleCallSignature(funcType);
76119
+ const returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType);
76106
76120
  return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
76107
76121
  }
76108
76122
  function getTypeOfExpression(node) {
@@ -76147,7 +76161,7 @@ function createTypeChecker(host) {
76147
76161
  /*requireStringLiteralLikeArgument*/
76148
76162
  true
76149
76163
  ) && !isSymbolOrSymbolForCall(expr)) {
76150
- return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getNonGenericReturnTypeOfSingleCallSignature(checkNonNullExpression(expr.expression));
76164
+ return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
76151
76165
  } else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
76152
76166
  return getTypeFromTypeNode(expr.type);
76153
76167
  } else if (isLiteralExpression(node) || isBooleanLiteral(node)) {
@@ -81502,14 +81516,15 @@ function createTypeChecker(host) {
81502
81516
  idText(id)
81503
81517
  );
81504
81518
  }
81505
- if (!isIllegalExportDefaultInCJS && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) {
81506
- if (sym.flags & 2097152 /* Alias */ && resolveAlias(sym) !== unknownSymbol && getSymbolFlags(
81519
+ if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) {
81520
+ const nonLocalMeanings = getSymbolFlags(
81507
81521
  sym,
81508
81522
  /*excludeTypeOnlyMeanings*/
81509
81523
  false,
81510
81524
  /*excludeLocalMeanings*/
81511
81525
  true
81512
- ) & 788968 /* Type */ && (!typeOnlyDeclaration || getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node))) {
81526
+ );
81527
+ if (sym.flags & 2097152 /* Alias */ && nonLocalMeanings & 788968 /* Type */ && !(nonLocalMeanings & 111551 /* Value */) && (!typeOnlyDeclaration || getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node))) {
81513
81528
  error(
81514
81529
  id,
81515
81530
  node.isExportEquals ? Diagnostics._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 : Diagnostics._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,
package/lib/tsserver.js CHANGED
@@ -2340,7 +2340,7 @@ module.exports = __toCommonJS(server_exports);
2340
2340
 
2341
2341
  // src/compiler/corePublic.ts
2342
2342
  var versionMajorMinor = "5.4";
2343
- var version = `${versionMajorMinor}.0-insiders.20240123`;
2343
+ var version = `${versionMajorMinor}.0-insiders.20240131`;
2344
2344
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2345
2345
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2346
2346
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -6659,6 +6659,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
6659
6659
  TypeFlags2[TypeFlags2["NonPrimitive"] = 67108864] = "NonPrimitive";
6660
6660
  TypeFlags2[TypeFlags2["TemplateLiteral"] = 134217728] = "TemplateLiteral";
6661
6661
  TypeFlags2[TypeFlags2["StringMapping"] = 268435456] = "StringMapping";
6662
+ TypeFlags2[TypeFlags2["Reserved1"] = 536870912] = "Reserved1";
6662
6663
  TypeFlags2[TypeFlags2["AnyOrUnknown"] = 3] = "AnyOrUnknown";
6663
6664
  TypeFlags2[TypeFlags2["Nullable"] = 98304] = "Nullable";
6664
6665
  TypeFlags2[TypeFlags2["Literal"] = 2944] = "Literal";
@@ -6696,7 +6697,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
6696
6697
  TypeFlags2[TypeFlags2["IncludesWildcard"] = 8388608 /* IndexedAccess */] = "IncludesWildcard";
6697
6698
  TypeFlags2[TypeFlags2["IncludesEmptyObject"] = 16777216 /* Conditional */] = "IncludesEmptyObject";
6698
6699
  TypeFlags2[TypeFlags2["IncludesInstantiable"] = 33554432 /* Substitution */] = "IncludesInstantiable";
6699
- TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 268435456 /* StringMapping */] = "IncludesConstrainedTypeVariable";
6700
+ TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 536870912 /* Reserved1 */] = "IncludesConstrainedTypeVariable";
6700
6701
  TypeFlags2[TypeFlags2["NotPrimitiveUnion"] = 36323331] = "NotPrimitiveUnion";
6701
6702
  return TypeFlags2;
6702
6703
  })(TypeFlags || {});
@@ -47541,7 +47542,11 @@ function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFi
47541
47542
  if (modulePath.isRedirect) {
47542
47543
  redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
47543
47544
  } else if (pathIsBareSpecifier(local)) {
47544
- pathsSpecifiers = append(pathsSpecifiers, local);
47545
+ if (pathContainsNodeModules(local)) {
47546
+ relativeSpecifiers = append(relativeSpecifiers, local);
47547
+ } else {
47548
+ pathsSpecifiers = append(pathsSpecifiers, local);
47549
+ }
47545
47550
  } else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) {
47546
47551
  relativeSpecifiers = append(relativeSpecifiers, local);
47547
47552
  }
@@ -50645,6 +50650,11 @@ function createTypeChecker(host) {
50645
50650
  diagnosticMessage = error2(errorLocation, Diagnostics.Class_0_used_before_its_declaration, declarationName);
50646
50651
  } else if (result.flags & 256 /* RegularEnum */) {
50647
50652
  diagnosticMessage = error2(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName);
50653
+ } else {
50654
+ Debug.assert(!!(result.flags & 128 /* ConstEnum */));
50655
+ if (getIsolatedModules(compilerOptions)) {
50656
+ diagnosticMessage = error2(errorLocation, Diagnostics.Enum_0_used_before_its_declaration, declarationName);
50657
+ }
50648
50658
  }
50649
50659
  if (diagnosticMessage) {
50650
50660
  addRelatedInfo(diagnosticMessage, createDiagnosticForNode(declaration, Diagnostics._0_is_declared_here, declarationName));
@@ -59794,7 +59804,7 @@ function createTypeChecker(host) {
59794
59804
  return simplified !== type ? simplified : getConstraintOfType(type);
59795
59805
  }
59796
59806
  function getConstraintFromIndexedAccess(type) {
59797
- if (isMappedTypeGenericIndexedAccess(type) || isGenericMappedType(type.objectType)) {
59807
+ if (isMappedTypeGenericIndexedAccess(type)) {
59798
59808
  return substituteIndexedMappedType(type.objectType, type.indexType);
59799
59809
  }
59800
59810
  const indexConstraint = getSimplifiedTypeOrConstraint(type.indexType);
@@ -60307,10 +60317,14 @@ function createTypeChecker(host) {
60307
60317
  return errorInfo;
60308
60318
  }
60309
60319
  function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment, includeTypeOnlyMembers) {
60320
+ var _a, _b;
60310
60321
  type = getReducedApparentType(type);
60311
60322
  if (type.flags & 524288 /* Object */) {
60312
60323
  const resolved = resolveStructuredTypeMembers(type);
60313
60324
  const symbol = resolved.members.get(name);
60325
+ if (symbol && !includeTypeOnlyMembers && ((_a = type.symbol) == null ? void 0 : _a.flags) & 512 /* ValueModule */ && ((_b = getSymbolLinks(type.symbol).typeOnlyExportStarMap) == null ? void 0 : _b.has(name))) {
60326
+ return void 0;
60327
+ }
60314
60328
  if (symbol && symbolIsValue(symbol, includeTypeOnlyMembers)) {
60315
60329
  return symbol;
60316
60330
  }
@@ -62213,7 +62227,7 @@ function createTypeChecker(host) {
62213
62227
  if (flags & 465829888 /* Instantiable */)
62214
62228
  includes |= 33554432 /* IncludesInstantiable */;
62215
62229
  if (flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */)
62216
- includes |= 268435456 /* IncludesConstrainedTypeVariable */;
62230
+ includes |= 536870912 /* IncludesConstrainedTypeVariable */;
62217
62231
  if (type === wildcardType)
62218
62232
  includes |= 8388608 /* IncludesWildcard */;
62219
62233
  if (!strictNullChecks && flags & 98304 /* Nullable */) {
@@ -62306,18 +62320,21 @@ function createTypeChecker(host) {
62306
62320
  }
62307
62321
  }
62308
62322
  function removeStringLiteralsMatchedByTemplateLiterals(types) {
62309
- const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t));
62323
+ const templates = filter(types, isPatternLiteralType);
62310
62324
  if (templates.length) {
62311
62325
  let i = types.length;
62312
62326
  while (i > 0) {
62313
62327
  i--;
62314
62328
  const t = types[i];
62315
- if (t.flags & 128 /* StringLiteral */ && some(templates, (template) => isTypeMatchedByTemplateLiteralType(t, template))) {
62329
+ if (t.flags & 128 /* StringLiteral */ && some(templates, (template) => isTypeMatchedByTemplateLiteralOrStringMapping(t, template))) {
62316
62330
  orderedRemoveItemAt(types, i);
62317
62331
  }
62318
62332
  }
62319
62333
  }
62320
62334
  }
62335
+ function isTypeMatchedByTemplateLiteralOrStringMapping(type, template) {
62336
+ return template.flags & 134217728 /* TemplateLiteral */ ? isTypeMatchedByTemplateLiteralType(type, template) : isMemberOfStringMapping(type, template);
62337
+ }
62321
62338
  function removeConstrainedTypeVariables(types) {
62322
62339
  const typeVariables = [];
62323
62340
  for (const type of types) {
@@ -62415,10 +62432,10 @@ function createTypeChecker(host) {
62415
62432
  if (includes & (32 /* Enum */ | 2944 /* Literal */ | 8192 /* UniqueESSymbol */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || includes & 16384 /* Void */ && includes & 32768 /* Undefined */) {
62416
62433
  removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & 2 /* Subtype */));
62417
62434
  }
62418
- if (includes & 128 /* StringLiteral */ && includes & 134217728 /* TemplateLiteral */) {
62435
+ if (includes & 128 /* StringLiteral */ && includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) {
62419
62436
  removeStringLiteralsMatchedByTemplateLiterals(typeSet);
62420
62437
  }
62421
- if (includes & 268435456 /* IncludesConstrainedTypeVariable */) {
62438
+ if (includes & 536870912 /* IncludesConstrainedTypeVariable */) {
62422
62439
  removeConstrainedTypeVariables(typeSet);
62423
62440
  }
62424
62441
  if (unionReduction === 2 /* Subtype */) {
@@ -62582,7 +62599,7 @@ function createTypeChecker(host) {
62582
62599
  while (i > 0) {
62583
62600
  i--;
62584
62601
  const t = types[i];
62585
- if (!(t.flags & 134217728 /* TemplateLiteral */))
62602
+ if (!(t.flags & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)))
62586
62603
  continue;
62587
62604
  for (const t2 of literals) {
62588
62605
  if (isTypeSubtypeOf(t2, t)) {
@@ -62656,7 +62673,7 @@ function createTypeChecker(host) {
62656
62673
  if (strictNullChecks && includes & 98304 /* Nullable */ && includes & (524288 /* Object */ | 67108864 /* NonPrimitive */ | 16777216 /* IncludesEmptyObject */) || includes & 67108864 /* NonPrimitive */ && includes & (469892092 /* DisjointDomains */ & ~67108864 /* NonPrimitive */) || includes & 402653316 /* StringLike */ && includes & (469892092 /* DisjointDomains */ & ~402653316 /* StringLike */) || includes & 296 /* NumberLike */ && includes & (469892092 /* DisjointDomains */ & ~296 /* NumberLike */) || includes & 2112 /* BigIntLike */ && includes & (469892092 /* DisjointDomains */ & ~2112 /* BigIntLike */) || includes & 12288 /* ESSymbolLike */ && includes & (469892092 /* DisjointDomains */ & ~12288 /* ESSymbolLike */) || includes & 49152 /* VoidLike */ && includes & (469892092 /* DisjointDomains */ & ~49152 /* VoidLike */)) {
62657
62674
  return neverType;
62658
62675
  }
62659
- if (includes & 134217728 /* TemplateLiteral */ && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) {
62676
+ if (includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) {
62660
62677
  return neverType;
62661
62678
  }
62662
62679
  if (includes & 1 /* Any */) {
@@ -80825,19 +80842,16 @@ function createTypeChecker(host) {
80825
80842
  }
80826
80843
  }
80827
80844
  }
80828
- function getNonGenericReturnTypeOfSingleCallSignature(funcType) {
80845
+ function getReturnTypeOfSingleNonGenericCallSignature(funcType) {
80829
80846
  const signature = getSingleCallSignature(funcType);
80830
- if (signature) {
80831
- const returnType = getReturnTypeOfSignature(signature);
80832
- if (!signature.typeParameters || !couldContainTypeVariables(returnType)) {
80833
- return returnType;
80834
- }
80847
+ if (signature && !signature.typeParameters) {
80848
+ return getReturnTypeOfSignature(signature);
80835
80849
  }
80836
80850
  }
80837
80851
  function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {
80838
80852
  const funcType = checkExpression(expr.expression);
80839
80853
  const nonOptionalType = getOptionalExpressionType(funcType, expr.expression);
80840
- const returnType = getNonGenericReturnTypeOfSingleCallSignature(funcType);
80854
+ const returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType);
80841
80855
  return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);
80842
80856
  }
80843
80857
  function getTypeOfExpression(node) {
@@ -80882,7 +80896,7 @@ function createTypeChecker(host) {
80882
80896
  /*requireStringLiteralLikeArgument*/
80883
80897
  true
80884
80898
  ) && !isSymbolOrSymbolForCall(expr)) {
80885
- return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getNonGenericReturnTypeOfSingleCallSignature(checkNonNullExpression(expr.expression));
80899
+ return isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) : getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));
80886
80900
  } else if (isAssertionExpression(expr) && !isConstTypeReference(expr.type)) {
80887
80901
  return getTypeFromTypeNode(expr.type);
80888
80902
  } else if (isLiteralExpression(node) || isBooleanLiteral(node)) {
@@ -86237,14 +86251,15 @@ function createTypeChecker(host) {
86237
86251
  idText(id)
86238
86252
  );
86239
86253
  }
86240
- if (!isIllegalExportDefaultInCJS && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) {
86241
- if (sym.flags & 2097152 /* Alias */ && resolveAlias(sym) !== unknownSymbol && getSymbolFlags(
86254
+ if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) {
86255
+ const nonLocalMeanings = getSymbolFlags(
86242
86256
  sym,
86243
86257
  /*excludeTypeOnlyMeanings*/
86244
86258
  false,
86245
86259
  /*excludeLocalMeanings*/
86246
86260
  true
86247
- ) & 788968 /* Type */ && (!typeOnlyDeclaration || getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node))) {
86261
+ );
86262
+ if (sym.flags & 2097152 /* Alias */ && nonLocalMeanings & 788968 /* Type */ && !(nonLocalMeanings & 111551 /* Value */) && (!typeOnlyDeclaration || getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node))) {
86248
86263
  error2(
86249
86264
  id,
86250
86265
  node.isExportEquals ? Diagnostics._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 : Diagnostics._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,
@@ -146867,17 +146882,19 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h
146867
146882
  Debug.assert(isJsxOpeningElement(tag) || isJsxClosingElement(tag), "tag should be opening or closing element");
146868
146883
  const openTag = tag.parent.openingElement;
146869
146884
  const closeTag = tag.parent.closingElement;
146870
- const openTagStart = openTag.tagName.getStart(sourceFile);
146871
- const openTagEnd = openTag.tagName.end;
146872
- const closeTagStart = closeTag.tagName.getStart(sourceFile);
146873
- const closeTagEnd = closeTag.tagName.end;
146874
- if (!(openTagStart <= position && position <= openTagEnd || closeTagStart <= position && position <= closeTagEnd))
146885
+ const openTagNameStart = openTag.tagName.getStart(sourceFile);
146886
+ const openTagNameEnd = openTag.tagName.end;
146887
+ const closeTagNameStart = closeTag.tagName.getStart(sourceFile);
146888
+ const closeTagNameEnd = closeTag.tagName.end;
146889
+ if (openTagNameStart === openTag.getStart(sourceFile) || closeTagNameStart === closeTag.getStart(sourceFile) || openTagNameEnd === openTag.getEnd() || closeTagNameEnd === closeTag.getEnd())
146890
+ return void 0;
146891
+ if (!(openTagNameStart <= position && position <= openTagNameEnd || closeTagNameStart <= position && position <= closeTagNameEnd))
146875
146892
  return void 0;
146876
146893
  const openingTagText = openTag.tagName.getText(sourceFile);
146877
146894
  if (openingTagText !== closeTag.tagName.getText(sourceFile))
146878
146895
  return void 0;
146879
146896
  return {
146880
- ranges: [{ start: openTagStart, length: openTagEnd - openTagStart }, { start: closeTagStart, length: closeTagEnd - closeTagStart }],
146897
+ ranges: [{ start: openTagNameStart, length: openTagNameEnd - openTagNameStart }, { start: closeTagNameStart, length: closeTagNameEnd - closeTagNameStart }],
146881
146898
  wordPattern: jsxTagWordPattern
146882
146899
  };
146883
146900
  }
@@ -152835,7 +152852,7 @@ function addMissingConstraint(changes, program, preferences, host, sourceFile, i
152835
152852
  }
152836
152853
  }
152837
152854
  function tryGetConstraintFromDiagnosticMessage(messageText) {
152838
- const [_, constraint] = flattenDiagnosticMessageText(messageText, "\n", 0).match(/`extends (.*)`/) || [];
152855
+ const [, constraint] = flattenDiagnosticMessageText(messageText, "\n", 0).match(/`extends (.*)`/) || [];
152839
152856
  return constraint;
152840
152857
  }
152841
152858
  function tryGetConstraintType(checker, node) {
@@ -154832,7 +154849,7 @@ function doChange23(changes, sourceFile, arg, expression) {
154832
154849
  );
154833
154850
  }
154834
154851
  function getSuggestion(messageText) {
154835
- const [_, suggestion] = flattenDiagnosticMessageText(messageText, "\n", 0).match(/'(.*)'/) || [];
154852
+ const [, suggestion] = flattenDiagnosticMessageText(messageText, "\n", 0).match(/'(.*)'/) || [];
154836
154853
  return suggestion;
154837
154854
  }
154838
154855
 
@@ -180771,7 +180788,7 @@ function convertScriptKindName(scriptKindName) {
180771
180788
  }
180772
180789
  }
180773
180790
  function convertUserPreferences(preferences) {
180774
- const { lazyConfiguredProjectsFromExternalProject, ...userPreferences } = preferences;
180791
+ const { lazyConfiguredProjectsFromExternalProject: _, ...userPreferences } = preferences;
180775
180792
  return userPreferences;
180776
180793
  }
180777
180794
  var fileNamePropertyReader = {
@@ -205,7 +205,7 @@ declare namespace ts {
205
205
  /**
206
206
  * Request to reload the project structure for all the opened files
207
207
  */
208
- interface ReloadProjectsRequest extends Message {
208
+ interface ReloadProjectsRequest extends Request {
209
209
  command: CommandTypes.ReloadProjects;
210
210
  }
211
211
  /**