typescript 5.4.0-dev.20231120 → 5.4.0-dev.20231121

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/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.4";
38
- version = `${versionMajorMinor}.0-dev.20231120`;
38
+ version = `${versionMajorMinor}.0-dev.20231121`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -4437,7 +4437,7 @@ ${lanes.join("\n")}
4437
4437
  TypeFlags2[TypeFlags2["InstantiablePrimitive"] = 406847488] = "InstantiablePrimitive";
4438
4438
  TypeFlags2[TypeFlags2["Instantiable"] = 465829888] = "Instantiable";
4439
4439
  TypeFlags2[TypeFlags2["StructuredOrInstantiable"] = 469499904] = "StructuredOrInstantiable";
4440
- TypeFlags2[TypeFlags2["ObjectFlagsType"] = 138117121] = "ObjectFlagsType";
4440
+ TypeFlags2[TypeFlags2["ObjectFlagsType"] = 3899393] = "ObjectFlagsType";
4441
4441
  TypeFlags2[TypeFlags2["Simplifiable"] = 25165824] = "Simplifiable";
4442
4442
  TypeFlags2[TypeFlags2["Singleton"] = 67358815] = "Singleton";
4443
4443
  TypeFlags2[TypeFlags2["Narrowable"] = 536624127] = "Narrowable";
@@ -7264,6 +7264,10 @@ ${lanes.join("\n")}
7264
7264
  ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled: diag(1286, 1 /* Error */, "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286", "ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),
7265
7265
  A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled: diag(1287, 1 /* Error */, "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287", "A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),
7266
7266
  An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled: diag(1288, 1 /* Error */, "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288", "An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),
7267
+ _0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported: diag(1289, 1 /* Error */, "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289", "'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),
7268
+ _0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default: diag(1290, 1 /* Error */, "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290", "'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),
7269
+ _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported: diag(1291, 1 /* Error */, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),
7270
+ _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default: diag(1292, 1 /* Error */, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),
7267
7271
  with_statements_are_not_allowed_in_an_async_function_block: diag(1300, 1 /* Error */, "with_statements_are_not_allowed_in_an_async_function_block_1300", "'with' statements are not allowed in an async function block."),
7268
7272
  await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(1308, 1 /* Error */, "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308", "'await' expressions are only allowed within async functions and at the top levels of modules."),
7269
7273
  The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level: diag(1309, 1 /* Error */, "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309", "The current file is a CommonJS module and cannot use 'await' at the top level."),
@@ -17355,7 +17359,7 @@ ${lanes.join("\n")}
17355
17359
  return (_a = symbol.declarations) == null ? void 0 : _a.find(isClassLike);
17356
17360
  }
17357
17361
  function getObjectFlags(type) {
17358
- return type.flags & 138117121 /* ObjectFlagsType */ ? type.objectFlags : 0;
17362
+ return type.flags & 3899393 /* ObjectFlagsType */ ? type.objectFlags : 0;
17359
17363
  }
17360
17364
  function forSomeAncestorDirectory(directory, callback) {
17361
17365
  return !!forEachAncestorDirectory(directory, (d) => callback(d) ? true : void 0);
@@ -56687,7 +56691,12 @@ ${lanes.join("\n")}
56687
56691
  const checkType = type.checkType;
56688
56692
  const constraint = getLowerBoundOfKeyType(checkType);
56689
56693
  if (constraint !== checkType) {
56690
- return getConditionalTypeInstantiation(type, prependTypeMapping(type.root.checkType, constraint, type.mapper));
56694
+ return getConditionalTypeInstantiation(
56695
+ type,
56696
+ prependTypeMapping(type.root.checkType, constraint, type.mapper),
56697
+ /*forConstraint*/
56698
+ false
56699
+ );
56691
56700
  }
56692
56701
  }
56693
56702
  return type;
@@ -57039,7 +57048,12 @@ ${lanes.join("\n")}
57039
57048
  );
57040
57049
  const constraint = simplified === type.checkType ? getConstraintOfType(simplified) : simplified;
57041
57050
  if (constraint && constraint !== type.checkType) {
57042
- const instantiated = getConditionalTypeInstantiation(type, prependTypeMapping(type.root.checkType, constraint, type.mapper));
57051
+ const instantiated = getConditionalTypeInstantiation(
57052
+ type,
57053
+ prependTypeMapping(type.root.checkType, constraint, type.mapper),
57054
+ /*forConstraint*/
57055
+ true
57056
+ );
57043
57057
  if (!(instantiated.flags & 131072 /* Never */)) {
57044
57058
  type.resolvedConstraintOfDistributive = instantiated;
57045
57059
  return instantiated;
@@ -59473,7 +59487,7 @@ ${lanes.join("\n")}
59473
59487
  }
59474
59488
  }
59475
59489
  function removeStringLiteralsMatchedByTemplateLiterals(types) {
59476
- const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t) && t.types.every((t2) => !(t2.flags & 2097152 /* Intersection */) || !areIntersectedTypesAvoidingPrimitiveReduction(t2.types)));
59490
+ const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t));
59477
59491
  if (templates.length) {
59478
59492
  let i = types.length;
59479
59493
  while (i > 0) {
@@ -59873,19 +59887,14 @@ ${lanes.join("\n")}
59873
59887
  function getConstituentCountOfTypes(types) {
59874
59888
  return reduceLeft(types, (n, t) => n + getConstituentCount(t), 0);
59875
59889
  }
59876
- function areIntersectedTypesAvoidingPrimitiveReduction(types, primitiveFlags = 4 /* String */ | 8 /* Number */ | 64 /* BigInt */) {
59877
- if (types.length !== 2) {
59878
- return false;
59879
- }
59880
- const [t1, t2] = types;
59881
- return !!(t1.flags & primitiveFlags) && t2 === emptyTypeLiteralType || !!(t2.flags & primitiveFlags) && t1 === emptyTypeLiteralType;
59882
- }
59883
59890
  function getTypeFromIntersectionTypeNode(node) {
59884
59891
  const links = getNodeLinks(node);
59885
59892
  if (!links.resolvedType) {
59886
59893
  const aliasSymbol = getAliasSymbolForTypeNode(node);
59887
59894
  const types = map(node.types, getTypeFromTypeNode);
59888
- const noSupertypeReduction = areIntersectedTypesAvoidingPrimitiveReduction(types);
59895
+ const emptyIndex = types.length === 2 ? types.indexOf(emptyTypeLiteralType) : -1;
59896
+ const t = emptyIndex >= 0 ? types[1 - emptyIndex] : unknownType;
59897
+ const noSupertypeReduction = !!(t.flags & (4 /* String */ | 8 /* Number */ | 64 /* BigInt */) || t.flags & 134217728 /* TemplateLiteral */ && isPatternLiteralType(t));
59889
59898
  links.resolvedType = getIntersectionType(types, aliasSymbol, getTypeArgumentsForAliasSymbol(aliasSymbol), noSupertypeReduction);
59890
59899
  }
59891
59900
  return links.resolvedType;
@@ -59912,19 +59921,17 @@ ${lanes.join("\n")}
59912
59921
  return constraintType;
59913
59922
  }
59914
59923
  const keyTypes = [];
59915
- if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
59916
- if (!isGenericIndexType(constraintType)) {
59917
- const modifiersType = getApparentType(getModifiersTypeFromMappedType(type));
59918
- forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, 8576 /* StringOrNumberLiteralOrUnique */, !!(indexFlags & 1 /* StringsOnly */), addMemberForKeyType);
59919
- } else {
59924
+ if (isGenericIndexType(constraintType)) {
59925
+ if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
59920
59926
  return getIndexTypeForGenericType(type, indexFlags);
59921
59927
  }
59928
+ forEachType(constraintType, addMemberForKeyType);
59929
+ } else if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
59930
+ const modifiersType = getApparentType(getModifiersTypeFromMappedType(type));
59931
+ forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, 8576 /* StringOrNumberLiteralOrUnique */, !!(indexFlags & 1 /* StringsOnly */), addMemberForKeyType);
59922
59932
  } else {
59923
59933
  forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType);
59924
59934
  }
59925
- if (isGenericIndexType(constraintType)) {
59926
- forEachType(constraintType, addMemberForKeyType);
59927
- }
59928
59935
  const result = indexFlags & 2 /* NoIndexSignatures */ ? filterType(getUnionType(keyTypes), (t) => !(t.flags & (1 /* Any */ | 4 /* String */))) : getUnionType(keyTypes);
59929
59936
  if (result.flags & 1048576 /* Union */ && constraintType.flags & 1048576 /* Union */ && getTypeListId(result.types) === getTypeListId(constraintType.types)) {
59930
59937
  return constraintType;
@@ -60097,11 +60104,6 @@ ${lanes.join("\n")}
60097
60104
  }
60098
60105
  function createTemplateLiteralType(texts, types) {
60099
60106
  const type = createType(134217728 /* TemplateLiteral */);
60100
- type.objectFlags = getPropagatingFlagsOfTypes(
60101
- types,
60102
- /*excludeKinds*/
60103
- 98304 /* Nullable */
60104
- );
60105
60107
  type.texts = texts;
60106
60108
  type.types = types;
60107
60109
  return type;
@@ -60396,7 +60398,15 @@ ${lanes.join("\n")}
60396
60398
  }
60397
60399
  function isPatternLiteralPlaceholderType(type) {
60398
60400
  if (type.flags & 2097152 /* Intersection */) {
60399
- return !isGenericType(type) && some(type.types, (t) => !!(t.flags & (2944 /* Literal */ | 98304 /* Nullable */)) || isPatternLiteralPlaceholderType(t));
60401
+ let seenPlaceholder = false;
60402
+ for (const t of type.types) {
60403
+ if (t.flags & (2944 /* Literal */ | 98304 /* Nullable */) || isPatternLiteralPlaceholderType(t)) {
60404
+ seenPlaceholder = true;
60405
+ } else if (!(t.flags & 524288 /* Object */)) {
60406
+ return false;
60407
+ }
60408
+ }
60409
+ return seenPlaceholder;
60400
60410
  }
60401
60411
  return !!(type.flags & (1 /* Any */ | 4 /* String */ | 8 /* Number */ | 64 /* BigInt */)) || isPatternLiteralType(type);
60402
60412
  }
@@ -60413,7 +60423,7 @@ ${lanes.join("\n")}
60413
60423
  return !!(getGenericObjectFlags(type) & 8388608 /* IsGenericIndexType */);
60414
60424
  }
60415
60425
  function getGenericObjectFlags(type) {
60416
- if (type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */)) {
60426
+ if (type.flags & 3145728 /* UnionOrIntersection */) {
60417
60427
  if (!(type.objectFlags & 2097152 /* IsGenericTypeComputed */)) {
60418
60428
  type.objectFlags |= 2097152 /* IsGenericTypeComputed */ | reduceLeft(type.types, (flags, t) => flags | getGenericObjectFlags(t), 0);
60419
60429
  }
@@ -60425,7 +60435,7 @@ ${lanes.join("\n")}
60425
60435
  }
60426
60436
  return type.objectFlags & 12582912 /* IsGenericType */;
60427
60437
  }
60428
- return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 8388608 /* IsGenericIndexType */ : 0);
60438
+ 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);
60429
60439
  }
60430
60440
  function getSimplifiedType(type, writing) {
60431
60441
  return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
@@ -60606,7 +60616,7 @@ ${lanes.join("\n")}
60606
60616
  function isDeferredType(type, checkTuples) {
60607
60617
  return isGenericType(type) || checkTuples && isTupleType(type) && some(getElementTypes(type), isGenericType);
60608
60618
  }
60609
- function getConditionalType(root, mapper, aliasSymbol, aliasTypeArguments) {
60619
+ function getConditionalType(root, mapper, forConstraint, aliasSymbol, aliasTypeArguments) {
60610
60620
  let result;
60611
60621
  let extraTypes;
60612
60622
  let tailCount = 0;
@@ -60652,7 +60662,7 @@ ${lanes.join("\n")}
60652
60662
  const inferredExtendsType = combinedMapper ? instantiateType(root.extendsType, combinedMapper) : extendsType;
60653
60663
  if (!checkTypeDeferred && !isDeferredType(inferredExtendsType, checkTuples)) {
60654
60664
  if (!(inferredExtendsType.flags & 3 /* AnyOrUnknown */) && (checkType.flags & 1 /* Any */ || !isTypeAssignableTo(getPermissiveInstantiation(checkType), getPermissiveInstantiation(inferredExtendsType)))) {
60655
- if (checkType.flags & 1 /* Any */) {
60665
+ if (checkType.flags & 1 /* Any */ || forConstraint && !(inferredExtendsType.flags & 131072 /* Never */) && someType(getPermissiveInstantiation(inferredExtendsType), (t) => isTypeAssignableTo(t, getPermissiveInstantiation(checkType)))) {
60656
60666
  (extraTypes || (extraTypes = [])).push(instantiateType(getTypeFromTypeNode(root.node.trueType), combinedMapper || mapper));
60657
60667
  }
60658
60668
  const falseType2 = getTypeFromTypeNode(root.node.falseType);
@@ -60762,7 +60772,9 @@ ${lanes.join("\n")}
60762
60772
  links.resolvedType = getConditionalType(
60763
60773
  root,
60764
60774
  /*mapper*/
60765
- void 0
60775
+ void 0,
60776
+ /*forConstraint*/
60777
+ false
60766
60778
  );
60767
60779
  if (outerTypeParameters) {
60768
60780
  root.instantiations = /* @__PURE__ */ new Map();
@@ -61451,7 +61463,7 @@ ${lanes.join("\n")}
61451
61463
  result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) : target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) : instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments);
61452
61464
  target.instantiations.set(id, result);
61453
61465
  const resultObjectFlags = getObjectFlags(result);
61454
- if (result.flags & 138117121 /* ObjectFlagsType */ && !(resultObjectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
61466
+ if (result.flags & 3899393 /* ObjectFlagsType */ && !(resultObjectFlags & 524288 /* CouldContainTypeVariablesComputed */)) {
61455
61467
  const resultCouldContainTypeVariables = some(typeArguments, couldContainTypeVariables);
61456
61468
  if (!(getObjectFlags(result) & 524288 /* CouldContainTypeVariablesComputed */)) {
61457
61469
  if (resultObjectFlags & (32 /* Mapped */ | 16 /* Anonymous */ | 4 /* Reference */)) {
@@ -61617,17 +61629,17 @@ ${lanes.join("\n")}
61617
61629
  result.objectFlags |= result.aliasTypeArguments ? getPropagatingFlagsOfTypes(result.aliasTypeArguments) : 0;
61618
61630
  return result;
61619
61631
  }
61620
- function getConditionalTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments) {
61632
+ function getConditionalTypeInstantiation(type, mapper, forConstraint, aliasSymbol, aliasTypeArguments) {
61621
61633
  const root = type.root;
61622
61634
  if (root.outerTypeParameters) {
61623
61635
  const typeArguments = map(root.outerTypeParameters, (t) => getMappedType(t, mapper));
61624
- const id = getTypeListId(typeArguments) + getAliasId(aliasSymbol, aliasTypeArguments);
61636
+ const id = (forConstraint ? "C" : "") + getTypeListId(typeArguments) + getAliasId(aliasSymbol, aliasTypeArguments);
61625
61637
  let result = root.instantiations.get(id);
61626
61638
  if (!result) {
61627
61639
  const newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);
61628
61640
  const checkType = root.checkType;
61629
61641
  const distributionType = root.isDistributive ? getMappedType(checkType, newMapper) : void 0;
61630
- result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(getReducedType(distributionType), (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper)), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, aliasSymbol, aliasTypeArguments);
61642
+ result = distributionType && checkType !== distributionType && distributionType.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapTypeWithAlias(getReducedType(distributionType), (t) => getConditionalType(root, prependTypeMapping(checkType, t, newMapper), forConstraint), aliasSymbol, aliasTypeArguments) : getConditionalType(root, newMapper, forConstraint, aliasSymbol, aliasTypeArguments);
61631
61643
  root.instantiations.set(id, result);
61632
61644
  }
61633
61645
  return result;
@@ -61715,7 +61727,14 @@ ${lanes.join("\n")}
61715
61727
  );
61716
61728
  }
61717
61729
  if (flags & 16777216 /* Conditional */) {
61718
- return getConditionalTypeInstantiation(type, combineTypeMappers(type.mapper, mapper), aliasSymbol, aliasTypeArguments);
61730
+ return getConditionalTypeInstantiation(
61731
+ type,
61732
+ combineTypeMappers(type.mapper, mapper),
61733
+ /*forConstraint*/
61734
+ false,
61735
+ aliasSymbol,
61736
+ aliasTypeArguments
61737
+ );
61719
61738
  }
61720
61739
  if (flags & 33554432 /* Substitution */) {
61721
61740
  const newBaseType = instantiateType(type.baseType, mapper);
@@ -63359,7 +63378,7 @@ ${lanes.join("\n")}
63359
63378
  return relation === comparableRelation ? someTypeRelatedToType(source2, target2, reportErrors2 && !(source2.flags & 402784252 /* Primitive */), intersectionState) : eachTypeRelatedToType(source2, target2, reportErrors2 && !(source2.flags & 402784252 /* Primitive */), intersectionState);
63360
63379
  }
63361
63380
  if (target2.flags & 1048576 /* Union */) {
63362
- return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source2), target2, reportErrors2 && !(source2.flags & 402784252 /* Primitive */) && !(target2.flags & 402784252 /* Primitive */));
63381
+ return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source2), target2, reportErrors2 && !(source2.flags & 402784252 /* Primitive */) && !(target2.flags & 402784252 /* Primitive */), intersectionState);
63363
63382
  }
63364
63383
  if (target2.flags & 2097152 /* Intersection */) {
63365
63384
  return typeRelatedToEachType(source2, target2, reportErrors2, 2 /* Target */);
@@ -63404,7 +63423,8 @@ ${lanes.join("\n")}
63404
63423
  sourceType,
63405
63424
  target2,
63406
63425
  /*reportErrors*/
63407
- false
63426
+ false,
63427
+ 0 /* None */
63408
63428
  );
63409
63429
  if (!related) {
63410
63430
  return 0 /* False */;
@@ -63413,7 +63433,7 @@ ${lanes.join("\n")}
63413
63433
  }
63414
63434
  return result2;
63415
63435
  }
63416
- function typeRelatedToSomeType(source2, target2, reportErrors2) {
63436
+ function typeRelatedToSomeType(source2, target2, reportErrors2, intersectionState) {
63417
63437
  const targetTypes = target2.types;
63418
63438
  if (target2.flags & 1048576 /* Union */) {
63419
63439
  if (containsType(targetTypes, source2)) {
@@ -63431,7 +63451,10 @@ ${lanes.join("\n")}
63431
63451
  match,
63432
63452
  2 /* Target */,
63433
63453
  /*reportErrors*/
63434
- false
63454
+ false,
63455
+ /*headMessage*/
63456
+ void 0,
63457
+ intersectionState
63435
63458
  );
63436
63459
  if (related) {
63437
63460
  return related;
@@ -63444,7 +63467,10 @@ ${lanes.join("\n")}
63444
63467
  type,
63445
63468
  2 /* Target */,
63446
63469
  /*reportErrors*/
63447
- false
63470
+ false,
63471
+ /*headMessage*/
63472
+ void 0,
63473
+ intersectionState
63448
63474
  );
63449
63475
  if (related) {
63450
63476
  return related;
@@ -63458,7 +63484,10 @@ ${lanes.join("\n")}
63458
63484
  bestMatchingType,
63459
63485
  2 /* Target */,
63460
63486
  /*reportErrors*/
63461
- true
63487
+ true,
63488
+ /*headMessage*/
63489
+ void 0,
63490
+ intersectionState
63462
63491
  );
63463
63492
  }
63464
63493
  }
@@ -64256,13 +64285,6 @@ ${lanes.join("\n")}
64256
64285
  return result2;
64257
64286
  }
64258
64287
  }
64259
- } else {
64260
- const distributiveConstraint = hasNonCircularBaseConstraint(source2) ? getConstraintOfDistributiveConditionalType(source2) : void 0;
64261
- if (distributiveConstraint) {
64262
- if (result2 = isRelatedTo(distributiveConstraint, target2, 1 /* Source */, reportErrors2)) {
64263
- return result2;
64264
- }
64265
- }
64266
64288
  }
64267
64289
  const defaultConstraint = getDefaultConstraintOfConditionalType(source2);
64268
64290
  if (defaultConstraint) {
@@ -64270,6 +64292,13 @@ ${lanes.join("\n")}
64270
64292
  return result2;
64271
64293
  }
64272
64294
  }
64295
+ const distributiveConstraint = !(targetFlags & 16777216 /* Conditional */) && hasNonCircularBaseConstraint(source2) ? getConstraintOfDistributiveConditionalType(source2) : void 0;
64296
+ if (distributiveConstraint) {
64297
+ resetErrorInfo(saveErrorInfo);
64298
+ if (result2 = isRelatedTo(distributiveConstraint, target2, 1 /* Source */, reportErrors2)) {
64299
+ return result2;
64300
+ }
64301
+ }
64273
64302
  } else {
64274
64303
  if (relation !== subtypeRelation && relation !== strictSubtypeRelation && isPartialMappedType(target2) && isEmptyObjectType(source2)) {
64275
64304
  return -1 /* True */;
@@ -66167,8 +66196,8 @@ ${lanes.join("\n")}
66167
66196
  if (objectFlags & 524288 /* CouldContainTypeVariablesComputed */) {
66168
66197
  return !!(objectFlags & 1048576 /* CouldContainTypeVariables */);
66169
66198
  }
66170
- const result = !!(type.flags & 465829888 /* Instantiable */ || type.flags & 524288 /* Object */ && !isNonGenericTopLevelType(type) && (objectFlags & 4 /* Reference */ && (type.node || some(getTypeArguments(type), couldContainTypeVariables)) || objectFlags & 16 /* Anonymous */ && type.symbol && type.symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */) && type.symbol.declarations || objectFlags & (32 /* Mapped */ | 1024 /* ReverseMapped */ | 4194304 /* ObjectRestType */ | 8388608 /* InstantiationExpressionType */)) || type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */) && !(type.flags & 1024 /* EnumLiteral */) && !isNonGenericTopLevelType(type) && some(type.types, couldContainTypeVariables));
66171
- if (type.flags & 138117121 /* ObjectFlagsType */) {
66199
+ const result = !!(type.flags & 465829888 /* Instantiable */ || type.flags & 524288 /* Object */ && !isNonGenericTopLevelType(type) && (objectFlags & 4 /* Reference */ && (type.node || some(getTypeArguments(type), couldContainTypeVariables)) || objectFlags & 16 /* Anonymous */ && type.symbol && type.symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */) && type.symbol.declarations || objectFlags & (32 /* Mapped */ | 1024 /* ReverseMapped */ | 4194304 /* ObjectRestType */ | 8388608 /* InstantiationExpressionType */)) || type.flags & 3145728 /* UnionOrIntersection */ && !(type.flags & 1024 /* EnumLiteral */) && !isNonGenericTopLevelType(type) && some(type.types, couldContainTypeVariables));
66200
+ if (type.flags & 3899393 /* ObjectFlagsType */) {
66172
66201
  type.objectFlags |= 524288 /* CouldContainTypeVariablesComputed */ | (result ? 1048576 /* CouldContainTypeVariables */ : 0);
66173
66202
  }
66174
66203
  return result;
@@ -83141,10 +83170,11 @@ ${lanes.join("\n")}
83141
83170
  node
83142
83171
  ));
83143
83172
  if (sym) {
83173
+ const typeOnlyDeclaration = getTypeOnlyAliasDeclaration(sym, 111551 /* Value */);
83144
83174
  markAliasReferenced(sym, id);
83145
83175
  if (getSymbolFlags(sym) & 111551 /* Value */) {
83146
83176
  checkExpressionCached(id);
83147
- if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && getTypeOnlyAliasDeclaration(sym, 111551 /* Value */)) {
83177
+ if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && typeOnlyDeclaration) {
83148
83178
  error2(
83149
83179
  id,
83150
83180
  node.isExportEquals ? Diagnostics.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration : Diagnostics.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,
@@ -83158,6 +83188,33 @@ ${lanes.join("\n")}
83158
83188
  idText(id)
83159
83189
  );
83160
83190
  }
83191
+ if (!isIllegalExportDefaultInCJS && getIsolatedModules(compilerOptions) && !(sym.flags & 111551 /* Value */)) {
83192
+ if (sym.flags & 2097152 /* Alias */ && resolveAlias(sym) !== unknownSymbol && getSymbolFlags(
83193
+ sym,
83194
+ /*excludeTypeOnlyMeanings*/
83195
+ false,
83196
+ /*excludeLocalMeanings*/
83197
+ true
83198
+ ) & 788968 /* Type */ && (!typeOnlyDeclaration || getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node))) {
83199
+ error2(
83200
+ id,
83201
+ 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,
83202
+ idText(id),
83203
+ isolatedModulesLikeFlagName
83204
+ );
83205
+ } else if (typeOnlyDeclaration && getSourceFileOfNode(typeOnlyDeclaration) !== getSourceFileOfNode(node)) {
83206
+ addTypeOnlyDeclarationRelatedInfo(
83207
+ error2(
83208
+ id,
83209
+ node.isExportEquals ? Diagnostics._0_resolves_to_a_type_only_declaration_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_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,
83210
+ idText(id),
83211
+ isolatedModulesLikeFlagName
83212
+ ),
83213
+ typeOnlyDeclaration,
83214
+ idText(id)
83215
+ );
83216
+ }
83217
+ }
83161
83218
  } else {
83162
83219
  checkExpressionCached(id);
83163
83220
  }
@@ -84552,7 +84609,11 @@ ${lanes.join("\n")}
84552
84609
  const exportClause = node.exportClause;
84553
84610
  return !!exportClause && (isNamespaceExport(exportClause) || some(exportClause.elements, isValueAliasDeclaration));
84554
84611
  case 277 /* ExportAssignment */:
84555
- return node.expression && node.expression.kind === 80 /* Identifier */ ? isAliasResolvedToValue(getSymbolOfDeclaration(node)) : true;
84612
+ return node.expression && node.expression.kind === 80 /* Identifier */ ? isAliasResolvedToValue(
84613
+ getSymbolOfDeclaration(node),
84614
+ /*excludeTypeOnlyValues*/
84615
+ true
84616
+ ) : true;
84556
84617
  }
84557
84618
  return false;
84558
84619
  }
@@ -131437,8 +131498,11 @@ ${lanes.join("\n")}
131437
131498
  function textSpansEqual(a, b) {
131438
131499
  return !!a && !!b && a.start === b.start && a.length === b.length;
131439
131500
  }
131440
- function documentSpansEqual(a, b) {
131441
- return a.fileName === b.fileName && textSpansEqual(a.textSpan, b.textSpan);
131501
+ function documentSpansEqual(a, b, useCaseSensitiveFileNames2) {
131502
+ return (useCaseSensitiveFileNames2 ? equateStringsCaseSensitive : equateStringsCaseInsensitive)(a.fileName, b.fileName) && textSpansEqual(a.textSpan, b.textSpan);
131503
+ }
131504
+ function getDocumentSpansEqualityComparer(useCaseSensitiveFileNames2) {
131505
+ return (a, b) => documentSpansEqual(a, b, useCaseSensitiveFileNames2);
131442
131506
  }
131443
131507
  function forEachUnique(array, callback) {
131444
131508
  if (array) {
@@ -159628,6 +159692,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159628
159692
  }
159629
159693
  return void 0;
159630
159694
  }
159695
+ function isInDifferentLineThanContextToken(contextToken2, position2) {
159696
+ return sourceFile.getLineEndOfPosition(contextToken2.getEnd()) < position2;
159697
+ }
159631
159698
  function isSolelyIdentifierDefinitionLocation(contextToken2) {
159632
159699
  const parent2 = contextToken2.parent;
159633
159700
  const containingNodeKind = parent2.kind;
@@ -159669,11 +159736,19 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
159669
159736
  case 139 /* GetKeyword */:
159670
159737
  case 153 /* SetKeyword */:
159671
159738
  return !isFromObjectTypeDeclaration(contextToken2);
159672
- case 80 /* Identifier */:
159739
+ case 80 /* Identifier */: {
159673
159740
  if (containingNodeKind === 276 /* ImportSpecifier */ && contextToken2 === parent2.name && contextToken2.text === "type") {
159674
159741
  return false;
159675
159742
  }
159743
+ const ancestorVariableDeclaration = findAncestor(
159744
+ contextToken2.parent,
159745
+ isVariableDeclaration
159746
+ );
159747
+ if (ancestorVariableDeclaration && isInDifferentLineThanContextToken(contextToken2, position)) {
159748
+ return false;
159749
+ }
159676
159750
  break;
159751
+ }
159677
159752
  case 86 /* ClassKeyword */:
159678
159753
  case 94 /* EnumKeyword */:
159679
159754
  case 120 /* InterfaceKeyword */:
@@ -180060,10 +180135,10 @@ ${json}${newLine}`;
180060
180135
  }
180061
180136
  return deduplicate(outputs, equateValues);
180062
180137
  }
180063
- function createDocumentSpanSet() {
180064
- return createSet(({ textSpan }) => textSpan.start + 100003 * textSpan.length, documentSpansEqual);
180138
+ function createDocumentSpanSet(useCaseSensitiveFileNames2) {
180139
+ return createSet(({ textSpan }) => textSpan.start + 100003 * textSpan.length, getDocumentSpansEqualityComparer(useCaseSensitiveFileNames2));
180065
180140
  }
180066
- function getRenameLocationsWorker(projects, defaultProject, initialLocation, findInStrings, findInComments, preferences) {
180141
+ function getRenameLocationsWorker(projects, defaultProject, initialLocation, findInStrings, findInComments, preferences, useCaseSensitiveFileNames2) {
180067
180142
  const perProjectResults = getPerProjectReferences(
180068
180143
  projects,
180069
180144
  defaultProject,
@@ -180077,7 +180152,7 @@ ${json}${newLine}`;
180077
180152
  return perProjectResults;
180078
180153
  }
180079
180154
  const results = [];
180080
- const seen = createDocumentSpanSet();
180155
+ const seen = createDocumentSpanSet(useCaseSensitiveFileNames2);
180081
180156
  perProjectResults.forEach((projectResults, project) => {
180082
180157
  for (const result of projectResults) {
180083
180158
  if (!seen.has(result) && !getMappedLocationForProject(documentSpanLocation(result), project)) {
@@ -180100,7 +180175,7 @@ ${json}${newLine}`;
180100
180175
  const info = infos && firstOrUndefined(infos);
180101
180176
  return info && !info.isLocal ? { fileName: info.fileName, pos: info.textSpan.start } : void 0;
180102
180177
  }
180103
- function getReferencesWorker(projects, defaultProject, initialLocation, logger) {
180178
+ function getReferencesWorker(projects, defaultProject, initialLocation, useCaseSensitiveFileNames2, logger) {
180104
180179
  var _a, _b;
180105
180180
  const perProjectResults = getPerProjectReferences(
180106
180181
  projects,
@@ -180132,7 +180207,7 @@ ${json}${newLine}`;
180132
180207
  }
180133
180208
  });
180134
180209
  } else {
180135
- const knownSymbolSpans = createDocumentSpanSet();
180210
+ const knownSymbolSpans = createDocumentSpanSet(useCaseSensitiveFileNames2);
180136
180211
  for (const referencedSymbol of defaultProjectResults) {
180137
180212
  for (const ref of referencedSymbol.references) {
180138
180213
  if (ref.isDefinition) {
@@ -180167,7 +180242,7 @@ ${json}${newLine}`;
180167
180242
  });
180168
180243
  }
180169
180244
  const results = [];
180170
- const seenRefs = createDocumentSpanSet();
180245
+ const seenRefs = createDocumentSpanSet(useCaseSensitiveFileNames2);
180171
180246
  perProjectResults.forEach((projectResults, project) => {
180172
180247
  for (const referencedSymbol of projectResults) {
180173
180248
  const mappedDefinitionFile = getMappedLocationForProject(documentSpanLocation(referencedSymbol.definition), project);
@@ -180178,7 +180253,7 @@ ${json}${newLine}`;
180178
180253
  fileName: mappedDefinitionFile.fileName,
180179
180254
  contextSpan: getMappedContextSpanForProject(referencedSymbol.definition, project)
180180
180255
  };
180181
- let symbolToAddTo = find(results, (o) => documentSpansEqual(o.definition, definition));
180256
+ let symbolToAddTo = find(results, (o) => documentSpansEqual(o.definition, definition, useCaseSensitiveFileNames2));
180182
180257
  if (!symbolToAddTo) {
180183
180258
  symbolToAddTo = { definition, references: [] };
180184
180259
  results.push(symbolToAddTo);
@@ -181709,7 +181784,10 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
181709
181784
  let definitions = this.mapDefinitionInfoLocations(unmappedDefinitions || emptyArray2, project).slice();
181710
181785
  const needsJsResolution = this.projectService.serverMode === 0 /* Semantic */ && (!some(definitions, (d) => toNormalizedPath(d.fileName) !== file && !d.isAmbient) || some(definitions, (d) => !!d.failedAliasResolution));
181711
181786
  if (needsJsResolution) {
181712
- const definitionSet = createSet((d) => d.textSpan.start, documentSpansEqual);
181787
+ const definitionSet = createSet(
181788
+ (d) => d.textSpan.start,
181789
+ getDocumentSpansEqualityComparer(this.host.useCaseSensitiveFileNames)
181790
+ );
181713
181791
  definitions == null ? void 0 : definitions.forEach((d) => definitionSet.add(d));
181714
181792
  const noDtsProject = project.getNoDtsResolutionProject(file);
181715
181793
  const ls = noDtsProject.getLanguageService();
@@ -182150,7 +182228,8 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
182150
182228
  { fileName: args.file, pos: position },
182151
182229
  !!args.findInStrings,
182152
182230
  !!args.findInComments,
182153
- preferences
182231
+ preferences,
182232
+ this.host.useCaseSensitiveFileNames
182154
182233
  );
182155
182234
  if (!simplifiedResult)
182156
182235
  return locations;
@@ -182185,6 +182264,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
182185
182264
  projects,
182186
182265
  this.getDefaultProject(args),
182187
182266
  { fileName: args.file, pos: position },
182267
+ this.host.useCaseSensitiveFileNames,
182188
182268
  this.logger
182189
182269
  );
182190
182270
  if (!simplifiedResult)
@@ -182207,7 +182287,7 @@ Project '${project.projectName}' (${ProjectKind[project.projectKind]}) ${counter
182207
182287
  const fileName = args.file;
182208
182288
  const preferences = this.getPreferences(toNormalizedPath(fileName));
182209
182289
  const references = [];
182210
- const seen = createDocumentSpanSet();
182290
+ const seen = createDocumentSpanSet(this.host.useCaseSensitiveFileNames);
182211
182291
  forEachProjectInProjects(
182212
182292
  projects,
182213
182293
  /*path*/
@@ -185036,6 +185116,7 @@ ${e.message}`;
185036
185116
  getDirectoryToWatchFailedLookupLocation: () => getDirectoryToWatchFailedLookupLocation,
185037
185117
  getDirectoryToWatchFailedLookupLocationFromTypeRoot: () => getDirectoryToWatchFailedLookupLocationFromTypeRoot,
185038
185118
  getDocumentPositionMapper: () => getDocumentPositionMapper,
185119
+ getDocumentSpansEqualityComparer: () => getDocumentSpansEqualityComparer,
185039
185120
  getESModuleInterop: () => getESModuleInterop,
185040
185121
  getEditsForFileRename: () => getEditsForFileRename,
185041
185122
  getEffectiveBaseTypeNode: () => getEffectiveBaseTypeNode,
@@ -187447,6 +187528,7 @@ ${e.message}`;
187447
187528
  getDirectoryToWatchFailedLookupLocation: () => getDirectoryToWatchFailedLookupLocation,
187448
187529
  getDirectoryToWatchFailedLookupLocationFromTypeRoot: () => getDirectoryToWatchFailedLookupLocationFromTypeRoot,
187449
187530
  getDocumentPositionMapper: () => getDocumentPositionMapper,
187531
+ getDocumentSpansEqualityComparer: () => getDocumentSpansEqualityComparer,
187450
187532
  getESModuleInterop: () => getESModuleInterop,
187451
187533
  getEditsForFileRename: () => getEditsForFileRename,
187452
187534
  getEffectiveBaseTypeNode: () => getEffectiveBaseTypeNode,
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.4";
57
- var version = `${versionMajorMinor}.0-dev.20231120`;
57
+ var version = `${versionMajorMinor}.0-dev.20231121`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -3095,7 +3095,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
3095
3095
  TypeFlags2[TypeFlags2["InstantiablePrimitive"] = 406847488] = "InstantiablePrimitive";
3096
3096
  TypeFlags2[TypeFlags2["Instantiable"] = 465829888] = "Instantiable";
3097
3097
  TypeFlags2[TypeFlags2["StructuredOrInstantiable"] = 469499904] = "StructuredOrInstantiable";
3098
- TypeFlags2[TypeFlags2["ObjectFlagsType"] = 138117121] = "ObjectFlagsType";
3098
+ TypeFlags2[TypeFlags2["ObjectFlagsType"] = 3899393] = "ObjectFlagsType";
3099
3099
  TypeFlags2[TypeFlags2["Simplifiable"] = 25165824] = "Simplifiable";
3100
3100
  TypeFlags2[TypeFlags2["Singleton"] = 67358815] = "Singleton";
3101
3101
  TypeFlags2[TypeFlags2["Narrowable"] = 536624127] = "Narrowable";
@@ -5312,6 +5312,10 @@ var Diagnostics = {
5312
5312
  ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled: diag(1286, 1 /* Error */, "ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286", "ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),
5313
5313
  A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled: diag(1287, 1 /* Error */, "A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287", "A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),
5314
5314
  An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled: diag(1288, 1 /* Error */, "An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288", "An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),
5315
+ _0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported: diag(1289, 1 /* Error */, "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289", "'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),
5316
+ _0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default: diag(1290, 1 /* Error */, "_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290", "'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),
5317
+ _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported: diag(1291, 1 /* Error */, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),
5318
+ _0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default: diag(1292, 1 /* Error */, "_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292", "'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),
5315
5319
  with_statements_are_not_allowed_in_an_async_function_block: diag(1300, 1 /* Error */, "with_statements_are_not_allowed_in_an_async_function_block_1300", "'with' statements are not allowed in an async function block."),
5316
5320
  await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(1308, 1 /* Error */, "await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308", "'await' expressions are only allowed within async functions and at the top levels of modules."),
5317
5321
  The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level: diag(1309, 1 /* Error */, "The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309", "The current file is a CommonJS module and cannot use 'await' at the top level."),
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.4.0-dev.20231120",
5
+ "version": "5.4.0-dev.20231121",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -114,5 +114,5 @@
114
114
  "node": "20.1.0",
115
115
  "npm": "8.19.4"
116
116
  },
117
- "gitHead": "c10edfbc8dd840c7e5d25b0e2ede2697ef4ac4b6"
117
+ "gitHead": "c266e47794fbd187425989448670238576523d4e"
118
118
  }