@typescript-deploys/pr-build 5.2.0-pr-55224-27 → 5.2.0-pr-55224-37

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/tsserver.js CHANGED
@@ -465,7 +465,6 @@ __export(server_exports, {
465
465
  createSourceFile: () => createSourceFile,
466
466
  createSourceMapGenerator: () => createSourceMapGenerator,
467
467
  createSourceMapSource: () => createSourceMapSource,
468
- createStackSet: () => createStackSet,
469
468
  createSuperAccessVariableStatement: () => createSuperAccessVariableStatement,
470
469
  createSymbolTable: () => createSymbolTable,
471
470
  createSymlinkCache: () => createSymlinkCache,
@@ -2332,7 +2331,7 @@ module.exports = __toCommonJS(server_exports);
2332
2331
 
2333
2332
  // src/compiler/corePublic.ts
2334
2333
  var versionMajorMinor = "5.2";
2335
- var version = `${versionMajorMinor}.0-insiders.20230801`;
2334
+ var version = `${versionMajorMinor}.0-insiders.20230803`;
2336
2335
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2337
2336
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2338
2337
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -4004,31 +4003,6 @@ function trimEndImpl(s) {
4004
4003
  function isNodeLikeSystem() {
4005
4004
  return typeof process !== "undefined" && !!process.nextTick && !process.browser && typeof module === "object";
4006
4005
  }
4007
- function createStackSet() {
4008
- var set = /* @__PURE__ */ new Set();
4009
- var stack = [];
4010
- var end = 0;
4011
- return {
4012
- has(value) {
4013
- return set.has(value);
4014
- },
4015
- push(value) {
4016
- set.add(value);
4017
- stack[end] = value;
4018
- end++;
4019
- },
4020
- popAll(callback) {
4021
- while (end > 0) {
4022
- end--;
4023
- const value = stack[end];
4024
- set.delete(value);
4025
- if (callback(value)) {
4026
- break;
4027
- }
4028
- }
4029
- }
4030
- };
4031
- }
4032
4006
 
4033
4007
  // src/compiler/debug.ts
4034
4008
  var LogLevel = /* @__PURE__ */ ((LogLevel3) => {
@@ -38789,7 +38763,7 @@ var commandOptionsWithoutBuild = [
38789
38763
  strictFlag: true,
38790
38764
  category: Diagnostics.Type_Checking,
38791
38765
  description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
38792
- defaultValueDescription: false
38766
+ defaultValueDescription: Diagnostics.false_unless_strict_is_set
38793
38767
  },
38794
38768
  {
38795
38769
  name: "alwaysStrict",
@@ -49094,7 +49068,7 @@ function createTypeChecker(host) {
49094
49068
  return symbol;
49095
49069
  }
49096
49070
  if (symbol.flags & 2097152 /* Alias */) {
49097
- const targetFlags = getAllSymbolFlags(symbol);
49071
+ const targetFlags = getSymbolFlags(symbol);
49098
49072
  if (targetFlags & meaning) {
49099
49073
  return symbol;
49100
49074
  }
@@ -49854,7 +49828,7 @@ function createTypeChecker(host) {
49854
49828
  /*isUse*/
49855
49829
  false
49856
49830
  ));
49857
- const allFlags = symbol && getAllSymbolFlags(symbol);
49831
+ const allFlags = symbol && getSymbolFlags(symbol);
49858
49832
  if (symbol && allFlags !== void 0 && !(allFlags & 111551 /* Value */)) {
49859
49833
  const rawName = unescapeLeadingUnderscores(name);
49860
49834
  if (isES2015OrLaterConstructorName(name)) {
@@ -50590,11 +50564,23 @@ function createTypeChecker(host) {
50590
50564
  }
50591
50565
  return void 0;
50592
50566
  }
50593
- function getAllSymbolFlags(symbol) {
50594
- let flags = symbol.flags;
50567
+ function getSymbolFlags(symbol, excludeTypeOnlyMeanings, excludeLocalMeanings) {
50568
+ const typeOnlyDeclaration = excludeTypeOnlyMeanings && getTypeOnlyAliasDeclaration(symbol);
50569
+ const typeOnlyDeclarationIsExportStar = typeOnlyDeclaration && isExportDeclaration(typeOnlyDeclaration);
50570
+ const typeOnlyResolution = typeOnlyDeclaration && (typeOnlyDeclarationIsExportStar ? resolveExternalModuleName(
50571
+ typeOnlyDeclaration.moduleSpecifier,
50572
+ typeOnlyDeclaration.moduleSpecifier,
50573
+ /*ignoreErrors*/
50574
+ true
50575
+ ) : resolveAlias(typeOnlyDeclaration.symbol));
50576
+ const typeOnlyExportStarTargets = typeOnlyDeclarationIsExportStar && typeOnlyResolution ? getExportsOfModule(typeOnlyResolution) : void 0;
50577
+ let flags = excludeLocalMeanings ? 0 /* None */ : symbol.flags;
50595
50578
  let seenSymbols;
50596
50579
  while (symbol.flags & 2097152 /* Alias */) {
50597
- const target = resolveAlias(symbol);
50580
+ const target = getExportSymbolOfValueSymbolIfExported(resolveAlias(symbol));
50581
+ if (!typeOnlyDeclarationIsExportStar && target === typeOnlyResolution || (typeOnlyExportStarTargets == null ? void 0 : typeOnlyExportStarTargets.get(target.escapedName)) === target) {
50582
+ break;
50583
+ }
50598
50584
  if (target === unknownSymbol) {
50599
50585
  return 67108863 /* All */;
50600
50586
  }
@@ -50652,7 +50638,7 @@ function createTypeChecker(host) {
50652
50638
  }
50653
50639
  if (links.typeOnlyDeclaration) {
50654
50640
  const resolved = links.typeOnlyDeclaration.kind === 278 /* ExportDeclaration */ ? resolveSymbol(getExportsOfModule(links.typeOnlyDeclaration.symbol.parent).get(links.typeOnlyExportStarName || symbol.escapedName)) : resolveAlias(links.typeOnlyDeclaration.symbol);
50655
- return getAllSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0;
50641
+ return getSymbolFlags(resolved) & include ? links.typeOnlyDeclaration : void 0;
50656
50642
  }
50657
50643
  return void 0;
50658
50644
  }
@@ -50663,7 +50649,11 @@ function createTypeChecker(host) {
50663
50649
  const symbol = getSymbolOfDeclaration(node);
50664
50650
  const target = resolveAlias(symbol);
50665
50651
  if (target) {
50666
- const markAlias = target === unknownSymbol || getAllSymbolFlags(target) & 111551 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */);
50652
+ const markAlias = target === unknownSymbol || getSymbolFlags(
50653
+ symbol,
50654
+ /*excludeTypeOnlyMeanings*/
50655
+ true
50656
+ ) & 111551 /* Value */ && !isConstEnumOrConstEnumOnlyModule(target);
50667
50657
  if (markAlias) {
50668
50658
  markAliasSymbolAsReferenced(symbol);
50669
50659
  }
@@ -50678,7 +50668,7 @@ function createTypeChecker(host) {
50678
50668
  if (!node)
50679
50669
  return Debug.fail();
50680
50670
  if (isInternalModuleImportEqualsDeclaration(node)) {
50681
- if (getAllSymbolFlags(resolveSymbol(symbol)) & 111551 /* Value */) {
50671
+ if (getSymbolFlags(resolveSymbol(symbol)) & 111551 /* Value */) {
50682
50672
  checkExpressionCached(node.moduleReference);
50683
50673
  }
50684
50674
  }
@@ -51529,7 +51519,7 @@ function createTypeChecker(host) {
51529
51519
  return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 && symbol.exportSymbol || symbol);
51530
51520
  }
51531
51521
  function symbolIsValue(symbol, includeTypeOnlyMembers) {
51532
- return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && getAllSymbolFlags(symbol) & 111551 /* Value */ && (includeTypeOnlyMembers || !getTypeOnlyAliasDeclaration(symbol)));
51522
+ return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && getSymbolFlags(symbol, !includeTypeOnlyMembers) & 111551 /* Value */);
51533
51523
  }
51534
51524
  function findConstructorDeclaration(node) {
51535
51525
  const members = node.members;
@@ -51796,7 +51786,7 @@ function createTypeChecker(host) {
51796
51786
  }
51797
51787
  const shouldResolveAlias = symbolFromSymbolTable.flags & 2097152 /* Alias */ && !getDeclarationOfKind(symbolFromSymbolTable, 281 /* ExportSpecifier */);
51798
51788
  symbolFromSymbolTable = shouldResolveAlias ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable;
51799
- const flags = shouldResolveAlias ? getAllSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags;
51789
+ const flags = shouldResolveAlias ? getSymbolFlags(symbolFromSymbolTable) : symbolFromSymbolTable.flags;
51800
51790
  if (flags & meaning) {
51801
51791
  qualify = true;
51802
51792
  return true;
@@ -54658,7 +54648,7 @@ function createTypeChecker(host) {
54658
54648
  return !exports ? [] : filter(arrayFrom(exports.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
54659
54649
  }
54660
54650
  function isTypeOnlyNamespace(symbol) {
54661
- return every(getNamespaceMembersForSerialization(symbol), (m) => !(getAllSymbolFlags(resolveSymbol(m)) & 111551 /* Value */));
54651
+ return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */));
54662
54652
  }
54663
54653
  function serializeModule(symbol, symbolName2, modifierFlags) {
54664
54654
  const members = getNamespaceMembersForSerialization(symbol);
@@ -56930,7 +56920,7 @@ function createTypeChecker(host) {
56930
56920
  true
56931
56921
  );
56932
56922
  const declaredType = firstDefined(exportSymbol == null ? void 0 : exportSymbol.declarations, (d) => isExportAssignment(d) ? tryGetTypeFromEffectiveTypeNode(d) : void 0);
56933
- links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getAllSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType;
56923
+ links.type = (exportSymbol == null ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol) : isDuplicatedCommonJSExport(symbol.declarations) ? autoType : declaredType ? declaredType : getSymbolFlags(targetSymbol) & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol) : errorType;
56934
56924
  }
56935
56925
  return links.type;
56936
56926
  }
@@ -64540,8 +64530,10 @@ function createTypeChecker(host) {
64540
64530
  let errorInfo;
64541
64531
  let relatedInfo;
64542
64532
  let maybeKeys;
64533
+ let maybeKeysSet;
64543
64534
  let sourceStack;
64544
64535
  let targetStack;
64536
+ let maybeCount = 0;
64545
64537
  let sourceDepth = 0;
64546
64538
  let targetDepth = 0;
64547
64539
  let expandingFlags = 0 /* None */;
@@ -65407,11 +65399,12 @@ function createTypeChecker(host) {
65407
65399
  }
65408
65400
  }
65409
65401
  if (!maybeKeys) {
65410
- maybeKeys = createStackSet();
65402
+ maybeKeys = [];
65403
+ maybeKeysSet = /* @__PURE__ */ new Set();
65411
65404
  sourceStack = [];
65412
65405
  targetStack = [];
65413
65406
  } else {
65414
- if (maybeKeys.has(id)) {
65407
+ if (maybeKeysSet.has(id)) {
65415
65408
  return 3 /* Maybe */;
65416
65409
  }
65417
65410
  const broadestEquivalentId = id.startsWith("*") ? getRelationKey(
@@ -65422,7 +65415,7 @@ function createTypeChecker(host) {
65422
65415
  /*ignoreConstraints*/
65423
65416
  true
65424
65417
  ) : void 0;
65425
- if (broadestEquivalentId && maybeKeys.has(broadestEquivalentId)) {
65418
+ if (broadestEquivalentId && maybeKeysSet.has(broadestEquivalentId)) {
65426
65419
  return 3 /* Maybe */;
65427
65420
  }
65428
65421
  if (sourceDepth === 100 || targetDepth === 100) {
@@ -65430,7 +65423,10 @@ function createTypeChecker(host) {
65430
65423
  return 0 /* False */;
65431
65424
  }
65432
65425
  }
65433
- maybeKeys.push(id);
65426
+ const maybeStart = maybeCount;
65427
+ maybeKeys[maybeCount] = id;
65428
+ maybeKeysSet.add(id);
65429
+ maybeCount++;
65434
65430
  const saveExpandingFlags = expandingFlags;
65435
65431
  if (recursionFlags & 1 /* Source */) {
65436
65432
  sourceStack[sourceDepth] = source2;
@@ -65482,19 +65478,34 @@ function createTypeChecker(host) {
65482
65478
  if (result2) {
65483
65479
  if (result2 === -1 /* True */ || sourceDepth === 0 && targetDepth === 0) {
65484
65480
  if (result2 === -1 /* True */ || result2 === 3 /* Maybe */) {
65485
- maybeKeys.popAll((v) => {
65486
- relation.set(v, 1 /* Succeeded */ | propagatingVarianceFlags);
65487
- return v === id;
65488
- });
65481
+ resetMaybeStack(
65482
+ /*markAllAsSucceeded*/
65483
+ true
65484
+ );
65489
65485
  } else {
65490
- maybeKeys.popAll((v) => v === id);
65486
+ resetMaybeStack(
65487
+ /*markAllAsSucceeded*/
65488
+ false
65489
+ );
65491
65490
  }
65492
65491
  }
65493
65492
  } else {
65494
65493
  relation.set(id, (reportErrors2 ? 4 /* Reported */ : 0) | 2 /* Failed */ | propagatingVarianceFlags);
65495
- maybeKeys.popAll((v) => v === id);
65494
+ resetMaybeStack(
65495
+ /*markAllAsSucceeded*/
65496
+ false
65497
+ );
65496
65498
  }
65497
65499
  return result2;
65500
+ function resetMaybeStack(markAllAsSucceeded) {
65501
+ for (let i = maybeStart; i < maybeCount; i++) {
65502
+ maybeKeysSet.delete(maybeKeys[i]);
65503
+ if (markAllAsSucceeded) {
65504
+ relation.set(maybeKeys[i], 1 /* Succeeded */ | propagatingVarianceFlags);
65505
+ }
65506
+ }
65507
+ maybeCount = maybeStart;
65508
+ }
65498
65509
  }
65499
65510
  function structuredTypeRelatedTo(source2, target2, reportErrors2, intersectionState) {
65500
65511
  const saveErrorInfo = captureErrorCalculationState();
@@ -70938,9 +70949,13 @@ function createTypeChecker(host) {
70938
70949
  symbol,
70939
70950
  /*excludes*/
70940
70951
  111551 /* Value */
70941
- ) && !isInTypeQuery(location) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */)) {
70952
+ ) && !isInTypeQuery(location)) {
70942
70953
  const target = resolveAlias(symbol);
70943
- if (getAllSymbolFlags(target) & (111551 /* Value */ | 1048576 /* ExportValue */)) {
70954
+ if (getSymbolFlags(
70955
+ symbol,
70956
+ /*excludeTypeOnlyMeanings*/
70957
+ true
70958
+ ) & (111551 /* Value */ | 1048576 /* ExportValue */)) {
70944
70959
  if (getIsolatedModules(compilerOptions) || shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(location) || !isConstEnumOrConstEnumOnlyModule(getExportSymbolOfValueSymbolIfExported(target))) {
70945
70960
  markAliasSymbolAsReferenced(symbol);
70946
70961
  } else {
@@ -81743,9 +81758,6 @@ function createTypeChecker(host) {
81743
81758
  if ((getCombinedNodeFlagsCached(node) & 7 /* BlockScoped */) !== 0 || isParameterDeclaration(node)) {
81744
81759
  return;
81745
81760
  }
81746
- if (node.kind === 260 /* VariableDeclaration */ && !node.initializer) {
81747
- return;
81748
- }
81749
81761
  const symbol = getSymbolOfDeclaration(node);
81750
81762
  if (symbol.flags & 1 /* FunctionScopedVariable */) {
81751
81763
  if (!isIdentifier(node.name))
@@ -84013,10 +84025,22 @@ function createTypeChecker(host) {
84013
84025
  return +expr.text;
84014
84026
  case 217 /* ParenthesizedExpression */:
84015
84027
  return evaluate(expr.expression, location);
84016
- case 80 /* Identifier */:
84017
- if (isInfinityOrNaNString(expr.escapedText)) {
84018
- return +expr.escapedText;
84028
+ case 80 /* Identifier */: {
84029
+ const identifier = expr;
84030
+ if (isInfinityOrNaNString(identifier.escapedText) && resolveEntityName(
84031
+ identifier,
84032
+ 111551 /* Value */,
84033
+ /*ignoreErrors*/
84034
+ true
84035
+ ) === getGlobalSymbol(
84036
+ identifier.escapedText,
84037
+ 111551 /* Value */,
84038
+ /*diagnostic*/
84039
+ void 0
84040
+ )) {
84041
+ return +identifier.escapedText;
84019
84042
  }
84043
+ }
84020
84044
  case 211 /* PropertyAccessExpression */:
84021
84045
  if (isEntityNameExpression(expr)) {
84022
84046
  const symbol = resolveEntityName(
@@ -84355,7 +84379,7 @@ function createTypeChecker(host) {
84355
84379
  }
84356
84380
  return;
84357
84381
  }
84358
- const targetFlags = getAllSymbolFlags(target);
84382
+ const targetFlags = getSymbolFlags(target);
84359
84383
  const excludedMeanings = (symbol.flags & (111551 /* Value */ | 1048576 /* ExportValue */) ? 111551 /* Value */ : 0) | (symbol.flags & 788968 /* Type */ ? 788968 /* Type */ : 0) | (symbol.flags & 1920 /* Namespace */ ? 1920 /* Namespace */ : 0);
84360
84384
  if (targetFlags & excludedMeanings) {
84361
84385
  const message = node.kind === 281 /* ExportSpecifier */ ? Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 : Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;
@@ -84513,7 +84537,7 @@ function createTypeChecker(host) {
84513
84537
  if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) {
84514
84538
  const target = resolveAlias(getSymbolOfDeclaration(node));
84515
84539
  if (target !== unknownSymbol) {
84516
- const targetFlags = getAllSymbolFlags(target);
84540
+ const targetFlags = getSymbolFlags(target);
84517
84541
  if (targetFlags & 111551 /* Value */) {
84518
84542
  const moduleName = getFirstIdentifier(node.moduleReference);
84519
84543
  if (!(resolveEntityName(moduleName, 111551 /* Value */ | 1920 /* Namespace */).flags & 1920 /* Namespace */)) {
@@ -84653,7 +84677,7 @@ function createTypeChecker(host) {
84653
84677
  markExportAsReferenced(node);
84654
84678
  }
84655
84679
  const target = symbol && (symbol.flags & 2097152 /* Alias */ ? resolveAlias(symbol) : symbol);
84656
- if (!target || getAllSymbolFlags(target) & 111551 /* Value */) {
84680
+ if (!target || getSymbolFlags(target) & 111551 /* Value */) {
84657
84681
  checkExpressionCached(node.propertyName || node.name);
84658
84682
  }
84659
84683
  }
@@ -84698,7 +84722,7 @@ function createTypeChecker(host) {
84698
84722
  ));
84699
84723
  if (sym) {
84700
84724
  markAliasReferenced(sym, id);
84701
- if (getAllSymbolFlags(sym) & 111551 /* Value */) {
84725
+ if (getSymbolFlags(sym) & 111551 /* Value */) {
84702
84726
  checkExpressionCached(id);
84703
84727
  if (!isIllegalExportDefaultInCJS && !(node.flags & 33554432 /* Ambient */) && compilerOptions.verbatimModuleSyntax && getTypeOnlyAliasDeclaration(sym, 111551 /* Value */)) {
84704
84728
  error2(
@@ -85319,7 +85343,7 @@ function createTypeChecker(host) {
85319
85343
  function copyLocallyVisibleExportSymbols(source, meaning2) {
85320
85344
  if (meaning2) {
85321
85345
  source.forEach((symbol) => {
85322
- if (!getDeclarationOfKind(symbol, 281 /* ExportSpecifier */) && !getDeclarationOfKind(symbol, 280 /* NamespaceExport */)) {
85346
+ if (!getDeclarationOfKind(symbol, 281 /* ExportSpecifier */) && !getDeclarationOfKind(symbol, 280 /* NamespaceExport */) && symbol.escapedName !== "default" /* Default */) {
85323
85347
  copySymbol(symbol, meaning2);
85324
85348
  }
85325
85349
  });
@@ -85945,7 +85969,7 @@ function createTypeChecker(host) {
85945
85969
  return symbolLinks2.exportsSomeValue;
85946
85970
  function isValue(s) {
85947
85971
  s = resolveSymbol(s);
85948
- return s && !!(getAllSymbolFlags(s) & 111551 /* Value */);
85972
+ return s && !!(getSymbolFlags(s) & 111551 /* Value */);
85949
85973
  }
85950
85974
  }
85951
85975
  function isNameOfModuleOrEnumDeclaration(node) {
@@ -86075,7 +86099,11 @@ function createTypeChecker(host) {
86075
86099
  case 276 /* ImportSpecifier */:
86076
86100
  case 281 /* ExportSpecifier */:
86077
86101
  const symbol = getSymbolOfDeclaration(node);
86078
- return !!symbol && isAliasResolvedToValue(symbol) && !getTypeOnlyAliasDeclaration(symbol, 111551 /* Value */);
86102
+ return !!symbol && isAliasResolvedToValue(
86103
+ symbol,
86104
+ /*excludeTypeOnlyValues*/
86105
+ true
86106
+ );
86079
86107
  case 278 /* ExportDeclaration */:
86080
86108
  const exportClause = node.exportClause;
86081
86109
  return !!exportClause && (isNamespaceExport(exportClause) || some(exportClause.elements, isValueAliasDeclaration));
@@ -86092,7 +86120,7 @@ function createTypeChecker(host) {
86092
86120
  const isValue = isAliasResolvedToValue(getSymbolOfDeclaration(node));
86093
86121
  return isValue && node.moduleReference && !nodeIsMissing(node.moduleReference);
86094
86122
  }
86095
- function isAliasResolvedToValue(symbol) {
86123
+ function isAliasResolvedToValue(symbol, excludeTypeOnlyValues) {
86096
86124
  if (!symbol) {
86097
86125
  return false;
86098
86126
  }
@@ -86100,7 +86128,12 @@ function createTypeChecker(host) {
86100
86128
  if (target === unknownSymbol) {
86101
86129
  return true;
86102
86130
  }
86103
- return !!((getAllSymbolFlags(target) ?? -1) & 111551 /* Value */) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target));
86131
+ return !!(getSymbolFlags(
86132
+ symbol,
86133
+ excludeTypeOnlyValues,
86134
+ /*excludeLocalMeanings*/
86135
+ true
86136
+ ) & 111551 /* Value */) && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target));
86104
86137
  }
86105
86138
  function isConstEnumOrConstEnumOnlyModule(s) {
86106
86139
  return isConstEnumSymbol(s) || !!s.constEnumOnlyModule;
@@ -86114,7 +86147,7 @@ function createTypeChecker(host) {
86114
86147
  return true;
86115
86148
  }
86116
86149
  const target = getSymbolLinks(symbol).aliasTarget;
86117
- if (target && getEffectiveModifierFlags(node) & 1 /* Export */ && getAllSymbolFlags(target) & 111551 /* Value */ && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) {
86150
+ if (target && getEffectiveModifierFlags(node) & 1 /* Export */ && getSymbolFlags(target) & 111551 /* Value */ && (shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) {
86118
86151
  return true;
86119
86152
  }
86120
86153
  }
@@ -172402,7 +172435,6 @@ __export(ts_exports2, {
172402
172435
  createSourceFile: () => createSourceFile,
172403
172436
  createSourceMapGenerator: () => createSourceMapGenerator,
172404
172437
  createSourceMapSource: () => createSourceMapSource,
172405
- createStackSet: () => createStackSet,
172406
172438
  createSuperAccessVariableStatement: () => createSuperAccessVariableStatement,
172407
172439
  createSymbolTable: () => createSymbolTable,
172408
172440
  createSymlinkCache: () => createSymlinkCache,
@@ -186933,7 +186965,6 @@ start(initializeNodeSystem(), require("os").platform());
186933
186965
  createSourceFile,
186934
186966
  createSourceMapGenerator,
186935
186967
  createSourceMapSource,
186936
- createStackSet,
186937
186968
  createSuperAccessVariableStatement,
186938
186969
  createSymbolTable,
186939
186970
  createSymlinkCache,
@@ -5832,9 +5832,11 @@ declare namespace ts {
5832
5832
  };
5833
5833
  }) | ExportDeclaration & {
5834
5834
  readonly isTypeOnly: true;
5835
+ readonly moduleSpecifier: Expression;
5835
5836
  } | NamespaceExport & {
5836
5837
  readonly parent: ExportDeclaration & {
5837
5838
  readonly isTypeOnly: true;
5839
+ readonly moduleSpecifier: Expression;
5838
5840
  };
5839
5841
  };
5840
5842
  type TypeOnlyAliasDeclaration = TypeOnlyImportDeclaration | TypeOnlyExportDeclaration;