@typescript-deploys/pr-build 5.5.0-pr-57749-11 → 5.5.0-pr-57465-103

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.5";
21
- var version = `${versionMajorMinor}.0-insiders.20240312`;
21
+ var version = `${versionMajorMinor}.0-insiders.20240314`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -6344,7 +6344,7 @@ var Diagnostics = {
6344
6344
  Overload_signatures_must_all_be_abstract_or_non_abstract: diag(2512, 1 /* Error */, "Overload_signatures_must_all_be_abstract_or_non_abstract_2512", "Overload signatures must all be abstract or non-abstract."),
6345
6345
  Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression: diag(2513, 1 /* Error */, "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513", "Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),
6346
6346
  A_tuple_type_cannot_be_indexed_with_a_negative_value: diag(2514, 1 /* Error */, "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514", "A tuple type cannot be indexed with a negative value."),
6347
- Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: diag(2515, 1 /* Error */, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),
6347
+ Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: diag(2515, 1 /* Error */, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),
6348
6348
  All_declarations_of_an_abstract_method_must_be_consecutive: diag(2516, 1 /* Error */, "All_declarations_of_an_abstract_method_must_be_consecutive_2516", "All declarations of an abstract method must be consecutive."),
6349
6349
  Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type: diag(2517, 1 /* Error */, "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517", "Cannot assign an abstract constructor type to a non-abstract constructor type."),
6350
6350
  A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard: diag(2518, 1 /* Error */, "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518", "A 'this'-based type guard is not compatible with a parameter-based type guard."),
@@ -6454,9 +6454,13 @@ var Diagnostics = {
6454
6454
  Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator: diag(2638, 1 /* Error */, "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638", "Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),
6455
6455
  React_components_cannot_include_JSX_namespace_names: diag(2639, 1 /* Error */, "React_components_cannot_include_JSX_namespace_names_2639", "React components cannot include JSX namespace names"),
6456
6456
  Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: diag(2649, 1 /* Error */, "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649", "Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),
6457
+ Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more: diag(2650, 1 /* Error */, "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650", "Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),
6457
6458
  A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: diag(2651, 1 /* Error */, "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651", "A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),
6458
6459
  Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: diag(2652, 1 /* Error */, "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652", "Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),
6459
6460
  Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1: diag(2653, 1 /* Error */, "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653", "Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),
6461
+ Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2: diag(2654, 1 /* Error */, "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654", "Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),
6462
+ Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more: diag(2655, 1 /* Error */, "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655", "Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),
6463
+ Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1: diag(2656, 1 /* Error */, "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656", "Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),
6460
6464
  JSX_expressions_must_have_one_parent_element: diag(2657, 1 /* Error */, "JSX_expressions_must_have_one_parent_element_2657", "JSX expressions must have one parent element."),
6461
6465
  Type_0_provides_no_match_for_the_signature_1: diag(2658, 1 /* Error */, "Type_0_provides_no_match_for_the_signature_1_2658", "Type '{0}' provides no match for the signature '{1}'."),
6462
6466
  super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher: diag(2659, 1 /* Error */, "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659", "'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),
@@ -7787,7 +7791,6 @@ var Diagnostics = {
7787
7791
  _0_is_possibly_null_or_undefined: diag(18049, 1 /* Error */, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."),
7788
7792
  The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."),
7789
7793
  Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."),
7790
- Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"),
7791
7794
  Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."),
7792
7795
  await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.")
7793
7796
  };
@@ -17651,6 +17654,20 @@ function replaceFirstStar(s, replacement) {
17651
17654
  function getNameFromImportAttribute(node) {
17652
17655
  return isIdentifier(node.name) ? node.name.escapedText : escapeLeadingUnderscores(node.name.text);
17653
17656
  }
17657
+ function isSyntacticallyString(expr) {
17658
+ expr = skipOuterExpressions(expr);
17659
+ switch (expr.kind) {
17660
+ case 226 /* BinaryExpression */:
17661
+ const left = expr.left;
17662
+ const right = expr.right;
17663
+ return expr.operatorToken.kind === 40 /* PlusToken */ && (isSyntacticallyString(left) || isSyntacticallyString(right));
17664
+ case 228 /* TemplateExpression */:
17665
+ case 11 /* StringLiteral */:
17666
+ case 15 /* NoSubstitutionTemplateLiteral */:
17667
+ return true;
17668
+ }
17669
+ return false;
17670
+ }
17654
17671
 
17655
17672
  // src/compiler/factory/baseNodeFactory.ts
17656
17673
  function createBaseNodeFactory() {
@@ -39796,7 +39813,7 @@ function createBinder() {
39796
39813
  inAssignmentPattern = saveInAssignmentPattern;
39797
39814
  return;
39798
39815
  }
39799
- if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */ && !options.allowUnreachableCode) {
39816
+ if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */ && (!options.allowUnreachableCode || node.kind === 253 /* ReturnStatement */)) {
39800
39817
  node.flowNode = currentFlow;
39801
39818
  }
39802
39819
  switch (node.kind) {
@@ -55642,7 +55659,15 @@ function createTypeChecker(host) {
55642
55659
  jsdocPredicate = getTypePredicateOfSignature(jsdocSignature);
55643
55660
  }
55644
55661
  }
55645
- signature.resolvedTypePredicate = type && isTypePredicateNode(type) ? createTypePredicateFromTypePredicateNode(type, signature) : jsdocPredicate || noTypePredicate;
55662
+ if (type || jsdocPredicate) {
55663
+ signature.resolvedTypePredicate = type && isTypePredicateNode(type) ? createTypePredicateFromTypePredicateNode(type, signature) : jsdocPredicate || noTypePredicate;
55664
+ } else if (signature.declaration && isFunctionLikeDeclaration(signature.declaration) && (!signature.resolvedReturnType || signature.resolvedReturnType.flags & 16 /* Boolean */) && getParameterCount(signature) > 0) {
55665
+ const { declaration } = signature;
55666
+ signature.resolvedTypePredicate = noTypePredicate;
55667
+ signature.resolvedTypePredicate = getTypePredicateFromBody(declaration) || noTypePredicate;
55668
+ } else {
55669
+ signature.resolvedTypePredicate = noTypePredicate;
55670
+ }
55646
55671
  }
55647
55672
  Debug.assert(!!signature.resolvedTypePredicate);
55648
55673
  }
@@ -57592,7 +57617,7 @@ function createTypeChecker(host) {
57592
57617
  const typeVarIndex = typeSet[0].flags & 8650752 /* TypeVariable */ ? 0 : 1;
57593
57618
  const typeVariable = typeSet[typeVarIndex];
57594
57619
  const primitiveType = typeSet[1 - typeVarIndex];
57595
- if (typeVariable.flags & 8650752 /* TypeVariable */ && (primitiveType.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */) || includes & 16777216 /* IncludesEmptyObject */)) {
57620
+ if (typeVariable.flags & 8650752 /* TypeVariable */ && (primitiveType.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */) && !isGenericStringLikeType(primitiveType) || includes & 16777216 /* IncludesEmptyObject */)) {
57596
57621
  const constraint = getBaseConstraintOfType(typeVariable);
57597
57622
  if (constraint && everyType(constraint, (t) => !!(t.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */)) || isEmptyAnonymousObjectType(t))) {
57598
57623
  if (isTypeStrictSubtypeOf(constraint, primitiveType)) {
@@ -58197,6 +58222,9 @@ function createTypeChecker(host) {
58197
58222
  function isPatternLiteralType(type) {
58198
58223
  return !!(type.flags & 134217728 /* TemplateLiteral */) && every(type.types, isPatternLiteralPlaceholderType) || !!(type.flags & 268435456 /* StringMapping */) && isPatternLiteralPlaceholderType(type.type);
58199
58224
  }
58225
+ function isGenericStringLikeType(type) {
58226
+ return !!(type.flags & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) && !isPatternLiteralType(type);
58227
+ }
58200
58228
  function isGenericType(type) {
58201
58229
  return !!getGenericObjectFlags(type);
58202
58230
  }
@@ -58219,7 +58247,7 @@ function createTypeChecker(host) {
58219
58247
  }
58220
58248
  return type.objectFlags & 12582912 /* IsGenericType */;
58221
58249
  }
58222
- return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
58250
+ return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */) || isGenericStringLikeType(type) ? 8388608 /* IsGenericIndexType */ : 0);
58223
58251
  }
58224
58252
  function getSimplifiedType(type, writing) {
58225
58253
  return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
@@ -74066,6 +74094,67 @@ function createTypeChecker(host) {
74066
74094
  return false;
74067
74095
  }
74068
74096
  }
74097
+ function getTypePredicateFromBody(func) {
74098
+ switch (func.kind) {
74099
+ case 176 /* Constructor */:
74100
+ case 177 /* GetAccessor */:
74101
+ case 178 /* SetAccessor */:
74102
+ return void 0;
74103
+ }
74104
+ const functionFlags = getFunctionFlags(func);
74105
+ if (functionFlags !== 0 /* Normal */)
74106
+ return void 0;
74107
+ let singleReturn;
74108
+ if (func.body && func.body.kind !== 241 /* Block */) {
74109
+ singleReturn = func.body;
74110
+ } else {
74111
+ const bailedEarly = forEachReturnStatement(func.body, (returnStatement) => {
74112
+ if (singleReturn || !returnStatement.expression)
74113
+ return true;
74114
+ singleReturn = returnStatement.expression;
74115
+ });
74116
+ if (bailedEarly || !singleReturn || functionHasImplicitReturn(func))
74117
+ return void 0;
74118
+ }
74119
+ return checkIfExpressionRefinesAnyParameter(func, singleReturn);
74120
+ }
74121
+ function checkIfExpressionRefinesAnyParameter(func, expr) {
74122
+ expr = skipParentheses(
74123
+ expr,
74124
+ /*excludeJSDocTypeAssertions*/
74125
+ true
74126
+ );
74127
+ const returnType = checkExpressionCached(expr);
74128
+ if (!(returnType.flags & 16 /* Boolean */))
74129
+ return void 0;
74130
+ return forEach(func.parameters, (param, i) => {
74131
+ const initType = getTypeOfSymbol(param.symbol);
74132
+ if (!initType || initType.flags & 16 /* Boolean */ || !isIdentifier(param.name) || isSymbolAssigned(param.symbol) || isRestParameter(param)) {
74133
+ return;
74134
+ }
74135
+ const trueType2 = checkIfExpressionRefinesParameter(func, expr, param, initType);
74136
+ if (trueType2) {
74137
+ return createTypePredicate(1 /* Identifier */, unescapeLeadingUnderscores(param.name.escapedText), i, trueType2);
74138
+ }
74139
+ });
74140
+ }
74141
+ function checkIfExpressionRefinesParameter(func, expr, param, initType) {
74142
+ const antecedent = expr.flowNode || expr.parent.kind === 253 /* ReturnStatement */ && expr.parent.flowNode || { flags: 2 /* Start */ };
74143
+ const trueCondition = {
74144
+ flags: 32 /* TrueCondition */,
74145
+ node: expr,
74146
+ antecedent
74147
+ };
74148
+ const trueType2 = getFlowTypeOfReference(param.name, initType, initType, func, trueCondition);
74149
+ if (trueType2 === initType)
74150
+ return void 0;
74151
+ const falseCondition = {
74152
+ ...trueCondition,
74153
+ flags: 64 /* FalseCondition */
74154
+ };
74155
+ const falseSubtype = getFlowTypeOfReference(param.name, trueType2, trueType2, func, falseCondition);
74156
+ return falseSubtype.flags & 131072 /* Never */ ? trueType2 : void 0;
74157
+ }
74069
74158
  function checkAllCodePathsInNonVoidFunctionReturnOrThrow(func, returnType) {
74070
74159
  addLazyDiagnostic(checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics);
74071
74160
  return;
@@ -80091,9 +80180,9 @@ function createTypeChecker(host) {
80091
80180
  return filter(symbol.declarations, (d) => d.kind === 263 /* ClassDeclaration */ || d.kind === 264 /* InterfaceDeclaration */);
80092
80181
  }
80093
80182
  function checkKindsOfPropertyMemberOverrides(type, baseType) {
80094
- var _a, _b, _c, _d;
80183
+ var _a, _b, _c, _d, _e;
80095
80184
  const baseProperties = getPropertiesOfType(baseType);
80096
- let inheritedAbstractMemberNotImplementedError;
80185
+ const notImplementedInfo = /* @__PURE__ */ new Map();
80097
80186
  basePropertyCheck:
80098
80187
  for (const baseProperty of baseProperties) {
80099
80188
  const base = getTargetSymbol(baseProperty);
@@ -80119,36 +80208,11 @@ function createTypeChecker(host) {
80119
80208
  continue basePropertyCheck;
80120
80209
  }
80121
80210
  }
80122
- if (!inheritedAbstractMemberNotImplementedError) {
80123
- inheritedAbstractMemberNotImplementedError = error(
80124
- derivedClassDecl,
80125
- Diagnostics.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,
80126
- typeToString(type),
80127
- typeToString(baseType)
80128
- );
80129
- }
80130
- if (derivedClassDecl.kind === 231 /* ClassExpression */) {
80131
- addRelatedInfo(
80132
- inheritedAbstractMemberNotImplementedError,
80133
- createDiagnosticForNode(
80134
- baseProperty.valueDeclaration ?? (baseProperty.declarations && first(baseProperty.declarations)) ?? derivedClassDecl,
80135
- Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,
80136
- symbolToString(baseProperty),
80137
- typeToString(baseType)
80138
- )
80139
- );
80140
- } else {
80141
- addRelatedInfo(
80142
- inheritedAbstractMemberNotImplementedError,
80143
- createDiagnosticForNode(
80144
- baseProperty.valueDeclaration ?? (baseProperty.declarations && first(baseProperty.declarations)) ?? derivedClassDecl,
80145
- Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,
80146
- typeToString(type),
80147
- symbolToString(baseProperty),
80148
- typeToString(baseType)
80149
- )
80150
- );
80151
- }
80211
+ const baseTypeName = typeToString(baseType);
80212
+ const typeName = typeToString(type);
80213
+ const basePropertyName = symbolToString(baseProperty);
80214
+ const missedProperties = append((_a = notImplementedInfo.get(derivedClassDecl)) == null ? void 0 : _a.missedProperties, basePropertyName);
80215
+ notImplementedInfo.set(derivedClassDecl, { baseTypeName, typeName, missedProperties });
80152
80216
  }
80153
80217
  } else {
80154
80218
  const derivedDeclarationFlags = getDeclarationModifierFlagsFromSymbol(derived);
@@ -80159,7 +80223,7 @@ function createTypeChecker(host) {
80159
80223
  const basePropertyFlags = base.flags & 98308 /* PropertyOrAccessor */;
80160
80224
  const derivedPropertyFlags = derived.flags & 98308 /* PropertyOrAccessor */;
80161
80225
  if (basePropertyFlags && derivedPropertyFlags) {
80162
- if ((getCheckFlags(base) & 6 /* Synthetic */ ? (_a = base.declarations) == null ? void 0 : _a.some((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags)) : (_b = base.declarations) == null ? void 0 : _b.every((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags))) || getCheckFlags(base) & 262144 /* Mapped */ || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration)) {
80226
+ if ((getCheckFlags(base) & 6 /* Synthetic */ ? (_b = base.declarations) == null ? void 0 : _b.some((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags)) : (_c = base.declarations) == null ? void 0 : _c.every((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags))) || getCheckFlags(base) & 262144 /* Mapped */ || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration)) {
80163
80227
  continue;
80164
80228
  }
80165
80229
  const overriddenInstanceProperty = basePropertyFlags !== 4 /* Property */ && derivedPropertyFlags === 4 /* Property */;
@@ -80168,8 +80232,8 @@ function createTypeChecker(host) {
80168
80232
  const errorMessage2 = overriddenInstanceProperty ? Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property : Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;
80169
80233
  error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type));
80170
80234
  } else if (useDefineForClassFields) {
80171
- const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 172 /* PropertyDeclaration */ && !d.initializer);
80172
- if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 64 /* Abstract */) && !(derivedDeclarationFlags & 64 /* Abstract */) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 33554432 /* Ambient */)))) {
80235
+ const uninitialized = (_d = derived.declarations) == null ? void 0 : _d.find((d) => d.kind === 172 /* PropertyDeclaration */ && !d.initializer);
80236
+ if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 64 /* Abstract */) && !(derivedDeclarationFlags & 64 /* Abstract */) && !((_e = derived.declarations) == null ? void 0 : _e.some((d) => !!(d.flags & 33554432 /* Ambient */)))) {
80173
80237
  const constructor = findConstructorDeclaration(getClassLikeDeclarationOfSymbol(type.symbol));
80174
80238
  const propName = uninitialized.name;
80175
80239
  if (uninitialized.exclamationToken || !constructor || !isIdentifier(propName) || !strictNullChecks || !isPropertyInitializedInConstructor(propName, type, constructor)) {
@@ -80194,6 +80258,30 @@ function createTypeChecker(host) {
80194
80258
  error(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type));
80195
80259
  }
80196
80260
  }
80261
+ for (const [errorNode, memberInfo] of notImplementedInfo) {
80262
+ if (length(memberInfo.missedProperties) === 1) {
80263
+ if (isClassExpression(errorNode)) {
80264
+ error(errorNode, Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1, first(memberInfo.missedProperties), memberInfo.baseTypeName);
80265
+ } else {
80266
+ error(errorNode, Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2, memberInfo.typeName, first(memberInfo.missedProperties), memberInfo.baseTypeName);
80267
+ }
80268
+ } else if (length(memberInfo.missedProperties) > 5) {
80269
+ const missedProperties = map(memberInfo.missedProperties.slice(0, 4), (prop) => `'${prop}'`).join(", ");
80270
+ const remainingMissedProperties = length(memberInfo.missedProperties) - 4;
80271
+ if (isClassExpression(errorNode)) {
80272
+ error(errorNode, Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more, memberInfo.baseTypeName, missedProperties, remainingMissedProperties);
80273
+ } else {
80274
+ error(errorNode, Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more, memberInfo.typeName, memberInfo.baseTypeName, missedProperties, remainingMissedProperties);
80275
+ }
80276
+ } else {
80277
+ const missedProperties = map(memberInfo.missedProperties, (prop) => `'${prop}'`).join(", ");
80278
+ if (isClassExpression(errorNode)) {
80279
+ error(errorNode, Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1, memberInfo.baseTypeName, missedProperties);
80280
+ } else {
80281
+ error(errorNode, Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2, memberInfo.typeName, memberInfo.baseTypeName, missedProperties);
80282
+ }
80283
+ }
80284
+ }
80197
80285
  }
80198
80286
  function isPropertyAbstractOrInterface(declaration, baseDeclarationFlags) {
80199
80287
  return baseDeclarationFlags & 64 /* Abstract */ && (!isPropertyDeclaration(declaration) || !declaration.initializer) || isInterfaceDeclaration(declaration.parent);
@@ -89385,7 +89473,7 @@ function transformTypeScript(context) {
89385
89473
  ),
89386
89474
  valueExpression
89387
89475
  );
89388
- const outerAssignment = valueExpression.kind === 11 /* StringLiteral */ ? innerAssignment : factory2.createAssignment(
89476
+ const outerAssignment = isSyntacticallyString(valueExpression) ? innerAssignment : factory2.createAssignment(
89389
89477
  factory2.createElementAccessExpression(
89390
89478
  currentNamespaceContainerName,
89391
89479
  innerAssignment
package/lib/tsserver.js CHANGED
@@ -1760,6 +1760,7 @@ __export(server_exports, {
1760
1760
  isSuperProperty: () => isSuperProperty,
1761
1761
  isSupportedSourceFileName: () => isSupportedSourceFileName,
1762
1762
  isSwitchStatement: () => isSwitchStatement,
1763
+ isSyntacticallyString: () => isSyntacticallyString,
1763
1764
  isSyntaxList: () => isSyntaxList,
1764
1765
  isSyntheticExpression: () => isSyntheticExpression,
1765
1766
  isSyntheticReference: () => isSyntheticReference,
@@ -2326,7 +2327,7 @@ module.exports = __toCommonJS(server_exports);
2326
2327
 
2327
2328
  // src/compiler/corePublic.ts
2328
2329
  var versionMajorMinor = "5.5";
2329
- var version = `${versionMajorMinor}.0-insiders.20240312`;
2330
+ var version = `${versionMajorMinor}.0-insiders.20240314`;
2330
2331
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2331
2332
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2332
2333
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -9923,7 +9924,7 @@ var Diagnostics = {
9923
9924
  Overload_signatures_must_all_be_abstract_or_non_abstract: diag(2512, 1 /* Error */, "Overload_signatures_must_all_be_abstract_or_non_abstract_2512", "Overload signatures must all be abstract or non-abstract."),
9924
9925
  Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression: diag(2513, 1 /* Error */, "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513", "Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),
9925
9926
  A_tuple_type_cannot_be_indexed_with_a_negative_value: diag(2514, 1 /* Error */, "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514", "A tuple type cannot be indexed with a negative value."),
9926
- Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: diag(2515, 1 /* Error */, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),
9927
+ Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: diag(2515, 1 /* Error */, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),
9927
9928
  All_declarations_of_an_abstract_method_must_be_consecutive: diag(2516, 1 /* Error */, "All_declarations_of_an_abstract_method_must_be_consecutive_2516", "All declarations of an abstract method must be consecutive."),
9928
9929
  Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type: diag(2517, 1 /* Error */, "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517", "Cannot assign an abstract constructor type to a non-abstract constructor type."),
9929
9930
  A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard: diag(2518, 1 /* Error */, "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518", "A 'this'-based type guard is not compatible with a parameter-based type guard."),
@@ -10033,9 +10034,13 @@ var Diagnostics = {
10033
10034
  Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator: diag(2638, 1 /* Error */, "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638", "Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),
10034
10035
  React_components_cannot_include_JSX_namespace_names: diag(2639, 1 /* Error */, "React_components_cannot_include_JSX_namespace_names_2639", "React components cannot include JSX namespace names"),
10035
10036
  Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: diag(2649, 1 /* Error */, "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649", "Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),
10037
+ Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more: diag(2650, 1 /* Error */, "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650", "Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),
10036
10038
  A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: diag(2651, 1 /* Error */, "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651", "A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),
10037
10039
  Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: diag(2652, 1 /* Error */, "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652", "Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),
10038
10040
  Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1: diag(2653, 1 /* Error */, "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653", "Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),
10041
+ Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2: diag(2654, 1 /* Error */, "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654", "Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),
10042
+ Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more: diag(2655, 1 /* Error */, "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655", "Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),
10043
+ Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1: diag(2656, 1 /* Error */, "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656", "Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),
10039
10044
  JSX_expressions_must_have_one_parent_element: diag(2657, 1 /* Error */, "JSX_expressions_must_have_one_parent_element_2657", "JSX expressions must have one parent element."),
10040
10045
  Type_0_provides_no_match_for_the_signature_1: diag(2658, 1 /* Error */, "Type_0_provides_no_match_for_the_signature_1_2658", "Type '{0}' provides no match for the signature '{1}'."),
10041
10046
  super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher: diag(2659, 1 /* Error */, "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659", "'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),
@@ -11366,7 +11371,6 @@ var Diagnostics = {
11366
11371
  _0_is_possibly_null_or_undefined: diag(18049, 1 /* Error */, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."),
11367
11372
  The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."),
11368
11373
  Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."),
11369
- Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"),
11370
11374
  Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."),
11371
11375
  await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.")
11372
11376
  };
@@ -21911,6 +21915,20 @@ function replaceFirstStar(s, replacement) {
21911
21915
  function getNameFromImportAttribute(node) {
21912
21916
  return isIdentifier(node.name) ? node.name.escapedText : escapeLeadingUnderscores(node.name.text);
21913
21917
  }
21918
+ function isSyntacticallyString(expr) {
21919
+ expr = skipOuterExpressions(expr);
21920
+ switch (expr.kind) {
21921
+ case 226 /* BinaryExpression */:
21922
+ const left = expr.left;
21923
+ const right = expr.right;
21924
+ return expr.operatorToken.kind === 40 /* PlusToken */ && (isSyntacticallyString(left) || isSyntacticallyString(right));
21925
+ case 228 /* TemplateExpression */:
21926
+ case 11 /* StringLiteral */:
21927
+ case 15 /* NoSubstitutionTemplateLiteral */:
21928
+ return true;
21929
+ }
21930
+ return false;
21931
+ }
21914
21932
 
21915
21933
  // src/compiler/factory/baseNodeFactory.ts
21916
21934
  function createBaseNodeFactory() {
@@ -44494,7 +44512,7 @@ function createBinder() {
44494
44512
  inAssignmentPattern = saveInAssignmentPattern;
44495
44513
  return;
44496
44514
  }
44497
- if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */ && !options.allowUnreachableCode) {
44515
+ if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */ && (!options.allowUnreachableCode || node.kind === 253 /* ReturnStatement */)) {
44498
44516
  node.flowNode = currentFlow;
44499
44517
  }
44500
44518
  switch (node.kind) {
@@ -60394,7 +60412,15 @@ function createTypeChecker(host) {
60394
60412
  jsdocPredicate = getTypePredicateOfSignature(jsdocSignature);
60395
60413
  }
60396
60414
  }
60397
- signature.resolvedTypePredicate = type && isTypePredicateNode(type) ? createTypePredicateFromTypePredicateNode(type, signature) : jsdocPredicate || noTypePredicate;
60415
+ if (type || jsdocPredicate) {
60416
+ signature.resolvedTypePredicate = type && isTypePredicateNode(type) ? createTypePredicateFromTypePredicateNode(type, signature) : jsdocPredicate || noTypePredicate;
60417
+ } else if (signature.declaration && isFunctionLikeDeclaration(signature.declaration) && (!signature.resolvedReturnType || signature.resolvedReturnType.flags & 16 /* Boolean */) && getParameterCount(signature) > 0) {
60418
+ const { declaration } = signature;
60419
+ signature.resolvedTypePredicate = noTypePredicate;
60420
+ signature.resolvedTypePredicate = getTypePredicateFromBody(declaration) || noTypePredicate;
60421
+ } else {
60422
+ signature.resolvedTypePredicate = noTypePredicate;
60423
+ }
60398
60424
  }
60399
60425
  Debug.assert(!!signature.resolvedTypePredicate);
60400
60426
  }
@@ -62344,7 +62370,7 @@ function createTypeChecker(host) {
62344
62370
  const typeVarIndex = typeSet[0].flags & 8650752 /* TypeVariable */ ? 0 : 1;
62345
62371
  const typeVariable = typeSet[typeVarIndex];
62346
62372
  const primitiveType = typeSet[1 - typeVarIndex];
62347
- if (typeVariable.flags & 8650752 /* TypeVariable */ && (primitiveType.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */) || includes & 16777216 /* IncludesEmptyObject */)) {
62373
+ if (typeVariable.flags & 8650752 /* TypeVariable */ && (primitiveType.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */) && !isGenericStringLikeType(primitiveType) || includes & 16777216 /* IncludesEmptyObject */)) {
62348
62374
  const constraint = getBaseConstraintOfType(typeVariable);
62349
62375
  if (constraint && everyType(constraint, (t) => !!(t.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */)) || isEmptyAnonymousObjectType(t))) {
62350
62376
  if (isTypeStrictSubtypeOf(constraint, primitiveType)) {
@@ -62949,6 +62975,9 @@ function createTypeChecker(host) {
62949
62975
  function isPatternLiteralType(type) {
62950
62976
  return !!(type.flags & 134217728 /* TemplateLiteral */) && every(type.types, isPatternLiteralPlaceholderType) || !!(type.flags & 268435456 /* StringMapping */) && isPatternLiteralPlaceholderType(type.type);
62951
62977
  }
62978
+ function isGenericStringLikeType(type) {
62979
+ return !!(type.flags & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) && !isPatternLiteralType(type);
62980
+ }
62952
62981
  function isGenericType(type) {
62953
62982
  return !!getGenericObjectFlags(type);
62954
62983
  }
@@ -62971,7 +63000,7 @@ function createTypeChecker(host) {
62971
63000
  }
62972
63001
  return type.objectFlags & 12582912 /* IsGenericType */;
62973
63002
  }
62974
- return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
63003
+ return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */) || isGenericStringLikeType(type) ? 8388608 /* IsGenericIndexType */ : 0);
62975
63004
  }
62976
63005
  function getSimplifiedType(type, writing) {
62977
63006
  return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
@@ -78818,6 +78847,67 @@ function createTypeChecker(host) {
78818
78847
  return false;
78819
78848
  }
78820
78849
  }
78850
+ function getTypePredicateFromBody(func) {
78851
+ switch (func.kind) {
78852
+ case 176 /* Constructor */:
78853
+ case 177 /* GetAccessor */:
78854
+ case 178 /* SetAccessor */:
78855
+ return void 0;
78856
+ }
78857
+ const functionFlags = getFunctionFlags(func);
78858
+ if (functionFlags !== 0 /* Normal */)
78859
+ return void 0;
78860
+ let singleReturn;
78861
+ if (func.body && func.body.kind !== 241 /* Block */) {
78862
+ singleReturn = func.body;
78863
+ } else {
78864
+ const bailedEarly = forEachReturnStatement(func.body, (returnStatement) => {
78865
+ if (singleReturn || !returnStatement.expression)
78866
+ return true;
78867
+ singleReturn = returnStatement.expression;
78868
+ });
78869
+ if (bailedEarly || !singleReturn || functionHasImplicitReturn(func))
78870
+ return void 0;
78871
+ }
78872
+ return checkIfExpressionRefinesAnyParameter(func, singleReturn);
78873
+ }
78874
+ function checkIfExpressionRefinesAnyParameter(func, expr) {
78875
+ expr = skipParentheses(
78876
+ expr,
78877
+ /*excludeJSDocTypeAssertions*/
78878
+ true
78879
+ );
78880
+ const returnType = checkExpressionCached(expr);
78881
+ if (!(returnType.flags & 16 /* Boolean */))
78882
+ return void 0;
78883
+ return forEach(func.parameters, (param, i) => {
78884
+ const initType = getTypeOfSymbol(param.symbol);
78885
+ if (!initType || initType.flags & 16 /* Boolean */ || !isIdentifier(param.name) || isSymbolAssigned(param.symbol) || isRestParameter(param)) {
78886
+ return;
78887
+ }
78888
+ const trueType2 = checkIfExpressionRefinesParameter(func, expr, param, initType);
78889
+ if (trueType2) {
78890
+ return createTypePredicate(1 /* Identifier */, unescapeLeadingUnderscores(param.name.escapedText), i, trueType2);
78891
+ }
78892
+ });
78893
+ }
78894
+ function checkIfExpressionRefinesParameter(func, expr, param, initType) {
78895
+ const antecedent = expr.flowNode || expr.parent.kind === 253 /* ReturnStatement */ && expr.parent.flowNode || { flags: 2 /* Start */ };
78896
+ const trueCondition = {
78897
+ flags: 32 /* TrueCondition */,
78898
+ node: expr,
78899
+ antecedent
78900
+ };
78901
+ const trueType2 = getFlowTypeOfReference(param.name, initType, initType, func, trueCondition);
78902
+ if (trueType2 === initType)
78903
+ return void 0;
78904
+ const falseCondition = {
78905
+ ...trueCondition,
78906
+ flags: 64 /* FalseCondition */
78907
+ };
78908
+ const falseSubtype = getFlowTypeOfReference(param.name, trueType2, trueType2, func, falseCondition);
78909
+ return falseSubtype.flags & 131072 /* Never */ ? trueType2 : void 0;
78910
+ }
78821
78911
  function checkAllCodePathsInNonVoidFunctionReturnOrThrow(func, returnType) {
78822
78912
  addLazyDiagnostic(checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics);
78823
78913
  return;
@@ -84843,9 +84933,9 @@ function createTypeChecker(host) {
84843
84933
  return filter(symbol.declarations, (d) => d.kind === 263 /* ClassDeclaration */ || d.kind === 264 /* InterfaceDeclaration */);
84844
84934
  }
84845
84935
  function checkKindsOfPropertyMemberOverrides(type, baseType) {
84846
- var _a, _b, _c, _d;
84936
+ var _a, _b, _c, _d, _e;
84847
84937
  const baseProperties = getPropertiesOfType(baseType);
84848
- let inheritedAbstractMemberNotImplementedError;
84938
+ const notImplementedInfo = /* @__PURE__ */ new Map();
84849
84939
  basePropertyCheck:
84850
84940
  for (const baseProperty of baseProperties) {
84851
84941
  const base = getTargetSymbol(baseProperty);
@@ -84871,36 +84961,11 @@ function createTypeChecker(host) {
84871
84961
  continue basePropertyCheck;
84872
84962
  }
84873
84963
  }
84874
- if (!inheritedAbstractMemberNotImplementedError) {
84875
- inheritedAbstractMemberNotImplementedError = error2(
84876
- derivedClassDecl,
84877
- Diagnostics.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,
84878
- typeToString(type),
84879
- typeToString(baseType)
84880
- );
84881
- }
84882
- if (derivedClassDecl.kind === 231 /* ClassExpression */) {
84883
- addRelatedInfo(
84884
- inheritedAbstractMemberNotImplementedError,
84885
- createDiagnosticForNode(
84886
- baseProperty.valueDeclaration ?? (baseProperty.declarations && first(baseProperty.declarations)) ?? derivedClassDecl,
84887
- Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,
84888
- symbolToString(baseProperty),
84889
- typeToString(baseType)
84890
- )
84891
- );
84892
- } else {
84893
- addRelatedInfo(
84894
- inheritedAbstractMemberNotImplementedError,
84895
- createDiagnosticForNode(
84896
- baseProperty.valueDeclaration ?? (baseProperty.declarations && first(baseProperty.declarations)) ?? derivedClassDecl,
84897
- Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,
84898
- typeToString(type),
84899
- symbolToString(baseProperty),
84900
- typeToString(baseType)
84901
- )
84902
- );
84903
- }
84964
+ const baseTypeName = typeToString(baseType);
84965
+ const typeName = typeToString(type);
84966
+ const basePropertyName = symbolToString(baseProperty);
84967
+ const missedProperties = append((_a = notImplementedInfo.get(derivedClassDecl)) == null ? void 0 : _a.missedProperties, basePropertyName);
84968
+ notImplementedInfo.set(derivedClassDecl, { baseTypeName, typeName, missedProperties });
84904
84969
  }
84905
84970
  } else {
84906
84971
  const derivedDeclarationFlags = getDeclarationModifierFlagsFromSymbol(derived);
@@ -84911,7 +84976,7 @@ function createTypeChecker(host) {
84911
84976
  const basePropertyFlags = base.flags & 98308 /* PropertyOrAccessor */;
84912
84977
  const derivedPropertyFlags = derived.flags & 98308 /* PropertyOrAccessor */;
84913
84978
  if (basePropertyFlags && derivedPropertyFlags) {
84914
- if ((getCheckFlags(base) & 6 /* Synthetic */ ? (_a = base.declarations) == null ? void 0 : _a.some((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags)) : (_b = base.declarations) == null ? void 0 : _b.every((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags))) || getCheckFlags(base) & 262144 /* Mapped */ || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration)) {
84979
+ if ((getCheckFlags(base) & 6 /* Synthetic */ ? (_b = base.declarations) == null ? void 0 : _b.some((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags)) : (_c = base.declarations) == null ? void 0 : _c.every((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags))) || getCheckFlags(base) & 262144 /* Mapped */ || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration)) {
84915
84980
  continue;
84916
84981
  }
84917
84982
  const overriddenInstanceProperty = basePropertyFlags !== 4 /* Property */ && derivedPropertyFlags === 4 /* Property */;
@@ -84920,8 +84985,8 @@ function createTypeChecker(host) {
84920
84985
  const errorMessage2 = overriddenInstanceProperty ? Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property : Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;
84921
84986
  error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type));
84922
84987
  } else if (useDefineForClassFields) {
84923
- const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 172 /* PropertyDeclaration */ && !d.initializer);
84924
- if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 64 /* Abstract */) && !(derivedDeclarationFlags & 64 /* Abstract */) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 33554432 /* Ambient */)))) {
84988
+ const uninitialized = (_d = derived.declarations) == null ? void 0 : _d.find((d) => d.kind === 172 /* PropertyDeclaration */ && !d.initializer);
84989
+ if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 64 /* Abstract */) && !(derivedDeclarationFlags & 64 /* Abstract */) && !((_e = derived.declarations) == null ? void 0 : _e.some((d) => !!(d.flags & 33554432 /* Ambient */)))) {
84925
84990
  const constructor = findConstructorDeclaration(getClassLikeDeclarationOfSymbol(type.symbol));
84926
84991
  const propName = uninitialized.name;
84927
84992
  if (uninitialized.exclamationToken || !constructor || !isIdentifier(propName) || !strictNullChecks || !isPropertyInitializedInConstructor(propName, type, constructor)) {
@@ -84946,6 +85011,30 @@ function createTypeChecker(host) {
84946
85011
  error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type));
84947
85012
  }
84948
85013
  }
85014
+ for (const [errorNode, memberInfo] of notImplementedInfo) {
85015
+ if (length(memberInfo.missedProperties) === 1) {
85016
+ if (isClassExpression(errorNode)) {
85017
+ error2(errorNode, Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1, first(memberInfo.missedProperties), memberInfo.baseTypeName);
85018
+ } else {
85019
+ error2(errorNode, Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2, memberInfo.typeName, first(memberInfo.missedProperties), memberInfo.baseTypeName);
85020
+ }
85021
+ } else if (length(memberInfo.missedProperties) > 5) {
85022
+ const missedProperties = map(memberInfo.missedProperties.slice(0, 4), (prop) => `'${prop}'`).join(", ");
85023
+ const remainingMissedProperties = length(memberInfo.missedProperties) - 4;
85024
+ if (isClassExpression(errorNode)) {
85025
+ error2(errorNode, Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more, memberInfo.baseTypeName, missedProperties, remainingMissedProperties);
85026
+ } else {
85027
+ error2(errorNode, Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more, memberInfo.typeName, memberInfo.baseTypeName, missedProperties, remainingMissedProperties);
85028
+ }
85029
+ } else {
85030
+ const missedProperties = map(memberInfo.missedProperties, (prop) => `'${prop}'`).join(", ");
85031
+ if (isClassExpression(errorNode)) {
85032
+ error2(errorNode, Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1, memberInfo.baseTypeName, missedProperties);
85033
+ } else {
85034
+ error2(errorNode, Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2, memberInfo.typeName, memberInfo.baseTypeName, missedProperties);
85035
+ }
85036
+ }
85037
+ }
84949
85038
  }
84950
85039
  function isPropertyAbstractOrInterface(declaration, baseDeclarationFlags) {
84951
85040
  return baseDeclarationFlags & 64 /* Abstract */ && (!isPropertyDeclaration(declaration) || !declaration.initializer) || isInterfaceDeclaration(declaration.parent);
@@ -94324,7 +94413,7 @@ function transformTypeScript(context) {
94324
94413
  ),
94325
94414
  valueExpression
94326
94415
  );
94327
- const outerAssignment = valueExpression.kind === 11 /* StringLiteral */ ? innerAssignment : factory2.createAssignment(
94416
+ const outerAssignment = isSyntacticallyString(valueExpression) ? innerAssignment : factory2.createAssignment(
94328
94417
  factory2.createElementAccessExpression(
94329
94418
  currentNamespaceContainerName,
94330
94419
  innerAssignment
@@ -153579,7 +153668,12 @@ function getTypesPackageNameToInstall(packageName, host, diagCode) {
153579
153668
 
153580
153669
  // src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts
153581
153670
  var errorCodes31 = [
153582
- Diagnostics.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code
153671
+ Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,
153672
+ Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,
153673
+ Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,
153674
+ Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,
153675
+ Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,
153676
+ Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code
153583
153677
  ];
153584
153678
  var fixId25 = "fixClassDoesntImplementInheritedAbstractMember";
153585
153679
  registerCodeFix({
@@ -175083,6 +175177,7 @@ __export(ts_exports2, {
175083
175177
  isSuperProperty: () => isSuperProperty,
175084
175178
  isSupportedSourceFileName: () => isSupportedSourceFileName,
175085
175179
  isSwitchStatement: () => isSwitchStatement,
175180
+ isSyntacticallyString: () => isSyntacticallyString,
175086
175181
  isSyntaxList: () => isSyntaxList,
175087
175182
  isSyntheticExpression: () => isSyntheticExpression,
175088
175183
  isSyntheticReference: () => isSyntheticReference,
@@ -189859,6 +189954,7 @@ start(initializeNodeSystem(), require("os").platform());
189859
189954
  isSuperProperty,
189860
189955
  isSupportedSourceFileName,
189861
189956
  isSwitchStatement,
189957
+ isSyntacticallyString,
189862
189958
  isSyntaxList,
189863
189959
  isSyntheticExpression,
189864
189960
  isSyntheticReference,
package/lib/typescript.js CHANGED
@@ -1760,6 +1760,7 @@ __export(typescript_exports, {
1760
1760
  isSuperProperty: () => isSuperProperty,
1761
1761
  isSupportedSourceFileName: () => isSupportedSourceFileName,
1762
1762
  isSwitchStatement: () => isSwitchStatement,
1763
+ isSyntacticallyString: () => isSyntacticallyString,
1763
1764
  isSyntaxList: () => isSyntaxList,
1764
1765
  isSyntheticExpression: () => isSyntheticExpression,
1765
1766
  isSyntheticReference: () => isSyntheticReference,
@@ -2326,7 +2327,7 @@ module.exports = __toCommonJS(typescript_exports);
2326
2327
 
2327
2328
  // src/compiler/corePublic.ts
2328
2329
  var versionMajorMinor = "5.5";
2329
- var version = `${versionMajorMinor}.0-insiders.20240312`;
2330
+ var version = `${versionMajorMinor}.0-insiders.20240314`;
2330
2331
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2331
2332
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2332
2333
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -9923,7 +9924,7 @@ var Diagnostics = {
9923
9924
  Overload_signatures_must_all_be_abstract_or_non_abstract: diag(2512, 1 /* Error */, "Overload_signatures_must_all_be_abstract_or_non_abstract_2512", "Overload signatures must all be abstract or non-abstract."),
9924
9925
  Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression: diag(2513, 1 /* Error */, "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513", "Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),
9925
9926
  A_tuple_type_cannot_be_indexed_with_a_negative_value: diag(2514, 1 /* Error */, "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514", "A tuple type cannot be indexed with a negative value."),
9926
- Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: diag(2515, 1 /* Error */, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),
9927
+ Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: diag(2515, 1 /* Error */, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),
9927
9928
  All_declarations_of_an_abstract_method_must_be_consecutive: diag(2516, 1 /* Error */, "All_declarations_of_an_abstract_method_must_be_consecutive_2516", "All declarations of an abstract method must be consecutive."),
9928
9929
  Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type: diag(2517, 1 /* Error */, "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517", "Cannot assign an abstract constructor type to a non-abstract constructor type."),
9929
9930
  A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard: diag(2518, 1 /* Error */, "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518", "A 'this'-based type guard is not compatible with a parameter-based type guard."),
@@ -10033,9 +10034,13 @@ var Diagnostics = {
10033
10034
  Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator: diag(2638, 1 /* Error */, "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638", "Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),
10034
10035
  React_components_cannot_include_JSX_namespace_names: diag(2639, 1 /* Error */, "React_components_cannot_include_JSX_namespace_names_2639", "React components cannot include JSX namespace names"),
10035
10036
  Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: diag(2649, 1 /* Error */, "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649", "Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),
10037
+ Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more: diag(2650, 1 /* Error */, "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650", "Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),
10036
10038
  A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: diag(2651, 1 /* Error */, "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651", "A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),
10037
10039
  Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: diag(2652, 1 /* Error */, "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652", "Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),
10038
10040
  Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1: diag(2653, 1 /* Error */, "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653", "Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),
10041
+ Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2: diag(2654, 1 /* Error */, "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654", "Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),
10042
+ Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more: diag(2655, 1 /* Error */, "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655", "Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),
10043
+ Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1: diag(2656, 1 /* Error */, "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656", "Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),
10039
10044
  JSX_expressions_must_have_one_parent_element: diag(2657, 1 /* Error */, "JSX_expressions_must_have_one_parent_element_2657", "JSX expressions must have one parent element."),
10040
10045
  Type_0_provides_no_match_for_the_signature_1: diag(2658, 1 /* Error */, "Type_0_provides_no_match_for_the_signature_1_2658", "Type '{0}' provides no match for the signature '{1}'."),
10041
10046
  super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher: diag(2659, 1 /* Error */, "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659", "'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),
@@ -11366,7 +11371,6 @@ var Diagnostics = {
11366
11371
  _0_is_possibly_null_or_undefined: diag(18049, 1 /* Error */, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."),
11367
11372
  The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."),
11368
11373
  Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."),
11369
- Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"),
11370
11374
  Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."),
11371
11375
  await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.")
11372
11376
  };
@@ -21911,6 +21915,20 @@ function replaceFirstStar(s, replacement) {
21911
21915
  function getNameFromImportAttribute(node) {
21912
21916
  return isIdentifier(node.name) ? node.name.escapedText : escapeLeadingUnderscores(node.name.text);
21913
21917
  }
21918
+ function isSyntacticallyString(expr) {
21919
+ expr = skipOuterExpressions(expr);
21920
+ switch (expr.kind) {
21921
+ case 226 /* BinaryExpression */:
21922
+ const left = expr.left;
21923
+ const right = expr.right;
21924
+ return expr.operatorToken.kind === 40 /* PlusToken */ && (isSyntacticallyString(left) || isSyntacticallyString(right));
21925
+ case 228 /* TemplateExpression */:
21926
+ case 11 /* StringLiteral */:
21927
+ case 15 /* NoSubstitutionTemplateLiteral */:
21928
+ return true;
21929
+ }
21930
+ return false;
21931
+ }
21914
21932
 
21915
21933
  // src/compiler/factory/baseNodeFactory.ts
21916
21934
  function createBaseNodeFactory() {
@@ -44494,7 +44512,7 @@ function createBinder() {
44494
44512
  inAssignmentPattern = saveInAssignmentPattern;
44495
44513
  return;
44496
44514
  }
44497
- if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */ && !options.allowUnreachableCode) {
44515
+ if (node.kind >= 243 /* FirstStatement */ && node.kind <= 259 /* LastStatement */ && (!options.allowUnreachableCode || node.kind === 253 /* ReturnStatement */)) {
44498
44516
  node.flowNode = currentFlow;
44499
44517
  }
44500
44518
  switch (node.kind) {
@@ -60394,7 +60412,15 @@ function createTypeChecker(host) {
60394
60412
  jsdocPredicate = getTypePredicateOfSignature(jsdocSignature);
60395
60413
  }
60396
60414
  }
60397
- signature.resolvedTypePredicate = type && isTypePredicateNode(type) ? createTypePredicateFromTypePredicateNode(type, signature) : jsdocPredicate || noTypePredicate;
60415
+ if (type || jsdocPredicate) {
60416
+ signature.resolvedTypePredicate = type && isTypePredicateNode(type) ? createTypePredicateFromTypePredicateNode(type, signature) : jsdocPredicate || noTypePredicate;
60417
+ } else if (signature.declaration && isFunctionLikeDeclaration(signature.declaration) && (!signature.resolvedReturnType || signature.resolvedReturnType.flags & 16 /* Boolean */) && getParameterCount(signature) > 0) {
60418
+ const { declaration } = signature;
60419
+ signature.resolvedTypePredicate = noTypePredicate;
60420
+ signature.resolvedTypePredicate = getTypePredicateFromBody(declaration) || noTypePredicate;
60421
+ } else {
60422
+ signature.resolvedTypePredicate = noTypePredicate;
60423
+ }
60398
60424
  }
60399
60425
  Debug.assert(!!signature.resolvedTypePredicate);
60400
60426
  }
@@ -62344,7 +62370,7 @@ function createTypeChecker(host) {
62344
62370
  const typeVarIndex = typeSet[0].flags & 8650752 /* TypeVariable */ ? 0 : 1;
62345
62371
  const typeVariable = typeSet[typeVarIndex];
62346
62372
  const primitiveType = typeSet[1 - typeVarIndex];
62347
- if (typeVariable.flags & 8650752 /* TypeVariable */ && (primitiveType.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */) || includes & 16777216 /* IncludesEmptyObject */)) {
62373
+ if (typeVariable.flags & 8650752 /* TypeVariable */ && (primitiveType.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */) && !isGenericStringLikeType(primitiveType) || includes & 16777216 /* IncludesEmptyObject */)) {
62348
62374
  const constraint = getBaseConstraintOfType(typeVariable);
62349
62375
  if (constraint && everyType(constraint, (t) => !!(t.flags & (402784252 /* Primitive */ | 67108864 /* NonPrimitive */)) || isEmptyAnonymousObjectType(t))) {
62350
62376
  if (isTypeStrictSubtypeOf(constraint, primitiveType)) {
@@ -62949,6 +62975,9 @@ function createTypeChecker(host) {
62949
62975
  function isPatternLiteralType(type) {
62950
62976
  return !!(type.flags & 134217728 /* TemplateLiteral */) && every(type.types, isPatternLiteralPlaceholderType) || !!(type.flags & 268435456 /* StringMapping */) && isPatternLiteralPlaceholderType(type.type);
62951
62977
  }
62978
+ function isGenericStringLikeType(type) {
62979
+ return !!(type.flags & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) && !isPatternLiteralType(type);
62980
+ }
62952
62981
  function isGenericType(type) {
62953
62982
  return !!getGenericObjectFlags(type);
62954
62983
  }
@@ -62971,7 +63000,7 @@ function createTypeChecker(host) {
62971
63000
  }
62972
63001
  return type.objectFlags & 12582912 /* IsGenericType */;
62973
63002
  }
62974
- return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
63003
+ return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */) || isGenericStringLikeType(type) ? 8388608 /* IsGenericIndexType */ : 0);
62975
63004
  }
62976
63005
  function getSimplifiedType(type, writing) {
62977
63006
  return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
@@ -78818,6 +78847,67 @@ function createTypeChecker(host) {
78818
78847
  return false;
78819
78848
  }
78820
78849
  }
78850
+ function getTypePredicateFromBody(func) {
78851
+ switch (func.kind) {
78852
+ case 176 /* Constructor */:
78853
+ case 177 /* GetAccessor */:
78854
+ case 178 /* SetAccessor */:
78855
+ return void 0;
78856
+ }
78857
+ const functionFlags = getFunctionFlags(func);
78858
+ if (functionFlags !== 0 /* Normal */)
78859
+ return void 0;
78860
+ let singleReturn;
78861
+ if (func.body && func.body.kind !== 241 /* Block */) {
78862
+ singleReturn = func.body;
78863
+ } else {
78864
+ const bailedEarly = forEachReturnStatement(func.body, (returnStatement) => {
78865
+ if (singleReturn || !returnStatement.expression)
78866
+ return true;
78867
+ singleReturn = returnStatement.expression;
78868
+ });
78869
+ if (bailedEarly || !singleReturn || functionHasImplicitReturn(func))
78870
+ return void 0;
78871
+ }
78872
+ return checkIfExpressionRefinesAnyParameter(func, singleReturn);
78873
+ }
78874
+ function checkIfExpressionRefinesAnyParameter(func, expr) {
78875
+ expr = skipParentheses(
78876
+ expr,
78877
+ /*excludeJSDocTypeAssertions*/
78878
+ true
78879
+ );
78880
+ const returnType = checkExpressionCached(expr);
78881
+ if (!(returnType.flags & 16 /* Boolean */))
78882
+ return void 0;
78883
+ return forEach(func.parameters, (param, i) => {
78884
+ const initType = getTypeOfSymbol(param.symbol);
78885
+ if (!initType || initType.flags & 16 /* Boolean */ || !isIdentifier(param.name) || isSymbolAssigned(param.symbol) || isRestParameter(param)) {
78886
+ return;
78887
+ }
78888
+ const trueType2 = checkIfExpressionRefinesParameter(func, expr, param, initType);
78889
+ if (trueType2) {
78890
+ return createTypePredicate(1 /* Identifier */, unescapeLeadingUnderscores(param.name.escapedText), i, trueType2);
78891
+ }
78892
+ });
78893
+ }
78894
+ function checkIfExpressionRefinesParameter(func, expr, param, initType) {
78895
+ const antecedent = expr.flowNode || expr.parent.kind === 253 /* ReturnStatement */ && expr.parent.flowNode || { flags: 2 /* Start */ };
78896
+ const trueCondition = {
78897
+ flags: 32 /* TrueCondition */,
78898
+ node: expr,
78899
+ antecedent
78900
+ };
78901
+ const trueType2 = getFlowTypeOfReference(param.name, initType, initType, func, trueCondition);
78902
+ if (trueType2 === initType)
78903
+ return void 0;
78904
+ const falseCondition = {
78905
+ ...trueCondition,
78906
+ flags: 64 /* FalseCondition */
78907
+ };
78908
+ const falseSubtype = getFlowTypeOfReference(param.name, trueType2, trueType2, func, falseCondition);
78909
+ return falseSubtype.flags & 131072 /* Never */ ? trueType2 : void 0;
78910
+ }
78821
78911
  function checkAllCodePathsInNonVoidFunctionReturnOrThrow(func, returnType) {
78822
78912
  addLazyDiagnostic(checkAllCodePathsInNonVoidFunctionReturnOrThrowDiagnostics);
78823
78913
  return;
@@ -84843,9 +84933,9 @@ function createTypeChecker(host) {
84843
84933
  return filter(symbol.declarations, (d) => d.kind === 263 /* ClassDeclaration */ || d.kind === 264 /* InterfaceDeclaration */);
84844
84934
  }
84845
84935
  function checkKindsOfPropertyMemberOverrides(type, baseType) {
84846
- var _a, _b, _c, _d;
84936
+ var _a, _b, _c, _d, _e;
84847
84937
  const baseProperties = getPropertiesOfType(baseType);
84848
- let inheritedAbstractMemberNotImplementedError;
84938
+ const notImplementedInfo = /* @__PURE__ */ new Map();
84849
84939
  basePropertyCheck:
84850
84940
  for (const baseProperty of baseProperties) {
84851
84941
  const base = getTargetSymbol(baseProperty);
@@ -84871,36 +84961,11 @@ function createTypeChecker(host) {
84871
84961
  continue basePropertyCheck;
84872
84962
  }
84873
84963
  }
84874
- if (!inheritedAbstractMemberNotImplementedError) {
84875
- inheritedAbstractMemberNotImplementedError = error2(
84876
- derivedClassDecl,
84877
- Diagnostics.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,
84878
- typeToString(type),
84879
- typeToString(baseType)
84880
- );
84881
- }
84882
- if (derivedClassDecl.kind === 231 /* ClassExpression */) {
84883
- addRelatedInfo(
84884
- inheritedAbstractMemberNotImplementedError,
84885
- createDiagnosticForNode(
84886
- baseProperty.valueDeclaration ?? (baseProperty.declarations && first(baseProperty.declarations)) ?? derivedClassDecl,
84887
- Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,
84888
- symbolToString(baseProperty),
84889
- typeToString(baseType)
84890
- )
84891
- );
84892
- } else {
84893
- addRelatedInfo(
84894
- inheritedAbstractMemberNotImplementedError,
84895
- createDiagnosticForNode(
84896
- baseProperty.valueDeclaration ?? (baseProperty.declarations && first(baseProperty.declarations)) ?? derivedClassDecl,
84897
- Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,
84898
- typeToString(type),
84899
- symbolToString(baseProperty),
84900
- typeToString(baseType)
84901
- )
84902
- );
84903
- }
84964
+ const baseTypeName = typeToString(baseType);
84965
+ const typeName = typeToString(type);
84966
+ const basePropertyName = symbolToString(baseProperty);
84967
+ const missedProperties = append((_a = notImplementedInfo.get(derivedClassDecl)) == null ? void 0 : _a.missedProperties, basePropertyName);
84968
+ notImplementedInfo.set(derivedClassDecl, { baseTypeName, typeName, missedProperties });
84904
84969
  }
84905
84970
  } else {
84906
84971
  const derivedDeclarationFlags = getDeclarationModifierFlagsFromSymbol(derived);
@@ -84911,7 +84976,7 @@ function createTypeChecker(host) {
84911
84976
  const basePropertyFlags = base.flags & 98308 /* PropertyOrAccessor */;
84912
84977
  const derivedPropertyFlags = derived.flags & 98308 /* PropertyOrAccessor */;
84913
84978
  if (basePropertyFlags && derivedPropertyFlags) {
84914
- if ((getCheckFlags(base) & 6 /* Synthetic */ ? (_a = base.declarations) == null ? void 0 : _a.some((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags)) : (_b = base.declarations) == null ? void 0 : _b.every((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags))) || getCheckFlags(base) & 262144 /* Mapped */ || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration)) {
84979
+ if ((getCheckFlags(base) & 6 /* Synthetic */ ? (_b = base.declarations) == null ? void 0 : _b.some((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags)) : (_c = base.declarations) == null ? void 0 : _c.every((d) => isPropertyAbstractOrInterface(d, baseDeclarationFlags))) || getCheckFlags(base) & 262144 /* Mapped */ || derived.valueDeclaration && isBinaryExpression(derived.valueDeclaration)) {
84915
84980
  continue;
84916
84981
  }
84917
84982
  const overriddenInstanceProperty = basePropertyFlags !== 4 /* Property */ && derivedPropertyFlags === 4 /* Property */;
@@ -84920,8 +84985,8 @@ function createTypeChecker(host) {
84920
84985
  const errorMessage2 = overriddenInstanceProperty ? Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property : Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;
84921
84986
  error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage2, symbolToString(base), typeToString(baseType), typeToString(type));
84922
84987
  } else if (useDefineForClassFields) {
84923
- const uninitialized = (_c = derived.declarations) == null ? void 0 : _c.find((d) => d.kind === 172 /* PropertyDeclaration */ && !d.initializer);
84924
- if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 64 /* Abstract */) && !(derivedDeclarationFlags & 64 /* Abstract */) && !((_d = derived.declarations) == null ? void 0 : _d.some((d) => !!(d.flags & 33554432 /* Ambient */)))) {
84988
+ const uninitialized = (_d = derived.declarations) == null ? void 0 : _d.find((d) => d.kind === 172 /* PropertyDeclaration */ && !d.initializer);
84989
+ if (uninitialized && !(derived.flags & 33554432 /* Transient */) && !(baseDeclarationFlags & 64 /* Abstract */) && !(derivedDeclarationFlags & 64 /* Abstract */) && !((_e = derived.declarations) == null ? void 0 : _e.some((d) => !!(d.flags & 33554432 /* Ambient */)))) {
84925
84990
  const constructor = findConstructorDeclaration(getClassLikeDeclarationOfSymbol(type.symbol));
84926
84991
  const propName = uninitialized.name;
84927
84992
  if (uninitialized.exclamationToken || !constructor || !isIdentifier(propName) || !strictNullChecks || !isPropertyInitializedInConstructor(propName, type, constructor)) {
@@ -84946,6 +85011,30 @@ function createTypeChecker(host) {
84946
85011
  error2(getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type));
84947
85012
  }
84948
85013
  }
85014
+ for (const [errorNode, memberInfo] of notImplementedInfo) {
85015
+ if (length(memberInfo.missedProperties) === 1) {
85016
+ if (isClassExpression(errorNode)) {
85017
+ error2(errorNode, Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1, first(memberInfo.missedProperties), memberInfo.baseTypeName);
85018
+ } else {
85019
+ error2(errorNode, Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2, memberInfo.typeName, first(memberInfo.missedProperties), memberInfo.baseTypeName);
85020
+ }
85021
+ } else if (length(memberInfo.missedProperties) > 5) {
85022
+ const missedProperties = map(memberInfo.missedProperties.slice(0, 4), (prop) => `'${prop}'`).join(", ");
85023
+ const remainingMissedProperties = length(memberInfo.missedProperties) - 4;
85024
+ if (isClassExpression(errorNode)) {
85025
+ error2(errorNode, Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more, memberInfo.baseTypeName, missedProperties, remainingMissedProperties);
85026
+ } else {
85027
+ error2(errorNode, Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more, memberInfo.typeName, memberInfo.baseTypeName, missedProperties, remainingMissedProperties);
85028
+ }
85029
+ } else {
85030
+ const missedProperties = map(memberInfo.missedProperties, (prop) => `'${prop}'`).join(", ");
85031
+ if (isClassExpression(errorNode)) {
85032
+ error2(errorNode, Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1, memberInfo.baseTypeName, missedProperties);
85033
+ } else {
85034
+ error2(errorNode, Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2, memberInfo.typeName, memberInfo.baseTypeName, missedProperties);
85035
+ }
85036
+ }
85037
+ }
84949
85038
  }
84950
85039
  function isPropertyAbstractOrInterface(declaration, baseDeclarationFlags) {
84951
85040
  return baseDeclarationFlags & 64 /* Abstract */ && (!isPropertyDeclaration(declaration) || !declaration.initializer) || isInterfaceDeclaration(declaration.parent);
@@ -94324,7 +94413,7 @@ function transformTypeScript(context) {
94324
94413
  ),
94325
94414
  valueExpression
94326
94415
  );
94327
- const outerAssignment = valueExpression.kind === 11 /* StringLiteral */ ? innerAssignment : factory2.createAssignment(
94416
+ const outerAssignment = isSyntacticallyString(valueExpression) ? innerAssignment : factory2.createAssignment(
94328
94417
  factory2.createElementAccessExpression(
94329
94418
  currentNamespaceContainerName,
94330
94419
  innerAssignment
@@ -153579,7 +153668,12 @@ function getTypesPackageNameToInstall(packageName, host, diagCode) {
153579
153668
 
153580
153669
  // src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts
153581
153670
  var errorCodes31 = [
153582
- Diagnostics.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code
153671
+ Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,
153672
+ Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,
153673
+ Diagnostics.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,
153674
+ Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,
153675
+ Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,
153676
+ Diagnostics.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code
153583
153677
  ];
153584
153678
  var fixId25 = "fixClassDoesntImplementInheritedAbstractMember";
153585
153679
  registerCodeFix({
@@ -175083,6 +175177,7 @@ __export(ts_exports2, {
175083
175177
  isSuperProperty: () => isSuperProperty,
175084
175178
  isSupportedSourceFileName: () => isSupportedSourceFileName,
175085
175179
  isSwitchStatement: () => isSwitchStatement,
175180
+ isSyntacticallyString: () => isSyntacticallyString,
175086
175181
  isSyntaxList: () => isSyntaxList,
175087
175182
  isSyntheticExpression: () => isSyntheticExpression,
175088
175183
  isSyntheticReference: () => isSyntheticReference,
@@ -189284,6 +189379,7 @@ if (typeof console !== "undefined") {
189284
189379
  isSuperProperty,
189285
189380
  isSupportedSourceFileName,
189286
189381
  isSwitchStatement,
189382
+ isSyntacticallyString,
189287
189383
  isSyntaxList,
189288
189384
  isSyntheticExpression,
189289
189385
  isSyntheticReference,
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.5";
57
- var version = `${versionMajorMinor}.0-insiders.20240312`;
57
+ var version = `${versionMajorMinor}.0-insiders.20240314`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -5729,7 +5729,7 @@ var Diagnostics = {
5729
5729
  Overload_signatures_must_all_be_abstract_or_non_abstract: diag(2512, 1 /* Error */, "Overload_signatures_must_all_be_abstract_or_non_abstract_2512", "Overload signatures must all be abstract or non-abstract."),
5730
5730
  Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression: diag(2513, 1 /* Error */, "Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513", "Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),
5731
5731
  A_tuple_type_cannot_be_indexed_with_a_negative_value: diag(2514, 1 /* Error */, "A_tuple_type_cannot_be_indexed_with_a_negative_value_2514", "A tuple type cannot be indexed with a negative value."),
5732
- Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: diag(2515, 1 /* Error */, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),
5732
+ Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: diag(2515, 1 /* Error */, "Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515", "Non-abstract class '{0}' does not implement inherited abstract member {1} from class '{2}'."),
5733
5733
  All_declarations_of_an_abstract_method_must_be_consecutive: diag(2516, 1 /* Error */, "All_declarations_of_an_abstract_method_must_be_consecutive_2516", "All declarations of an abstract method must be consecutive."),
5734
5734
  Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type: diag(2517, 1 /* Error */, "Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517", "Cannot assign an abstract constructor type to a non-abstract constructor type."),
5735
5735
  A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard: diag(2518, 1 /* Error */, "A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518", "A 'this'-based type guard is not compatible with a parameter-based type guard."),
@@ -5839,9 +5839,13 @@ var Diagnostics = {
5839
5839
  Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator: diag(2638, 1 /* Error */, "Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638", "Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),
5840
5840
  React_components_cannot_include_JSX_namespace_names: diag(2639, 1 /* Error */, "React_components_cannot_include_JSX_namespace_names_2639", "React components cannot include JSX namespace names"),
5841
5841
  Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: diag(2649, 1 /* Error */, "Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649", "Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),
5842
+ Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more: diag(2650, 1 /* Error */, "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and__2650", "Non-abstract class expression is missing implementations for the following members of '{0}': {1} and {2} more."),
5842
5843
  A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: diag(2651, 1 /* Error */, "A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651", "A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),
5843
5844
  Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: diag(2652, 1 /* Error */, "Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652", "Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),
5844
5845
  Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1: diag(2653, 1 /* Error */, "Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653", "Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),
5846
+ Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2: diag(2654, 1 /* Error */, "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_2654", "Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2}."),
5847
+ Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more: diag(2655, 1 /* Error */, "Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more_2655", "Non-abstract class '{0}' is missing implementations for the following members of '{1}': {2} and {3} more."),
5848
+ Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1: diag(2656, 1 /* Error */, "Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_2656", "Non-abstract class expression is missing implementations for the following members of '{0}': {1}."),
5845
5849
  JSX_expressions_must_have_one_parent_element: diag(2657, 1 /* Error */, "JSX_expressions_must_have_one_parent_element_2657", "JSX expressions must have one parent element."),
5846
5850
  Type_0_provides_no_match_for_the_signature_1: diag(2658, 1 /* Error */, "Type_0_provides_no_match_for_the_signature_1_2658", "Type '{0}' provides no match for the signature '{1}'."),
5847
5851
  super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher: diag(2659, 1 /* Error */, "super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659", "'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),
@@ -7172,7 +7176,6 @@ var Diagnostics = {
7172
7176
  _0_is_possibly_null_or_undefined: diag(18049, 1 /* Error */, "_0_is_possibly_null_or_undefined_18049", "'{0}' is possibly 'null' or 'undefined'."),
7173
7177
  The_value_0_cannot_be_used_here: diag(18050, 1 /* Error */, "The_value_0_cannot_be_used_here_18050", "The value '{0}' cannot be used here."),
7174
7178
  Compiler_option_0_cannot_be_given_an_empty_string: diag(18051, 1 /* Error */, "Compiler_option_0_cannot_be_given_an_empty_string_18051", "Compiler option '{0}' cannot be given an empty string."),
7175
- Non_abstract_class_0_does_not_implement_all_abstract_members_of_1: diag(18052, 1 /* Error */, "Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052", "Non-abstract class '{0}' does not implement all abstract members of '{1}'"),
7176
7179
  Its_type_0_is_not_a_valid_JSX_element_type: diag(18053, 1 /* Error */, "Its_type_0_is_not_a_valid_JSX_element_type_18053", "Its type '{0}' is not a valid JSX element type."),
7177
7180
  await_using_statements_cannot_be_used_inside_a_class_static_block: diag(18054, 1 /* Error */, "await_using_statements_cannot_be_used_inside_a_class_static_block_18054", "'await using' statements cannot be used inside a class static block.")
7178
7181
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.5.0-pr-57749-11",
5
+ "version": "5.5.0-pr-57465-103",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -113,5 +113,5 @@
113
113
  "node": "20.1.0",
114
114
  "npm": "8.19.4"
115
115
  },
116
- "gitHead": "965ee32ce9a02965a4ab1a33e2757175e67d911c"
116
+ "gitHead": "576ac26ef2b7c55e4b0b2d157a7ff9e590f1541f"
117
117
  }