@typescript-deploys/pr-build 5.1.0-pr-53134-21 → 5.1.0-pr-53098-13

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
@@ -91,6 +91,7 @@ __export(server_exports, {
91
91
  ImportKind: () => ImportKind,
92
92
  ImportsNotUsedAsValues: () => ImportsNotUsedAsValues,
93
93
  IndentStyle: () => IndentStyle,
94
+ IndexFlags: () => IndexFlags,
94
95
  IndexKind: () => IndexKind,
95
96
  InferenceFlags: () => InferenceFlags,
96
97
  InferencePriority: () => InferencePriority,
@@ -883,7 +884,6 @@ __export(server_exports, {
883
884
  getNodeForGeneratedName: () => getNodeForGeneratedName,
884
885
  getNodeId: () => getNodeId,
885
886
  getNodeKind: () => getNodeKind,
886
- getNodeMajorVersion: () => getNodeMajorVersion,
887
887
  getNodeModifiers: () => getNodeModifiers,
888
888
  getNodeModulePathParts: () => getNodeModulePathParts,
889
889
  getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(server_exports);
2285
2285
 
2286
2286
  // src/compiler/corePublic.ts
2287
2287
  var versionMajorMinor = "5.1";
2288
- var version = `${versionMajorMinor}.0-insiders.20230308`;
2288
+ var version = `${versionMajorMinor}.0-insiders.20230310`;
2289
2289
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2290
2290
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2291
2291
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -6748,6 +6748,13 @@ var AccessFlags = /* @__PURE__ */ ((AccessFlags2) => {
6748
6748
  AccessFlags2[AccessFlags2["Persistent"] = 1 /* IncludeUndefined */] = "Persistent";
6749
6749
  return AccessFlags2;
6750
6750
  })(AccessFlags || {});
6751
+ var IndexFlags = /* @__PURE__ */ ((IndexFlags2) => {
6752
+ IndexFlags2[IndexFlags2["None"] = 0] = "None";
6753
+ IndexFlags2[IndexFlags2["StringsOnly"] = 1] = "StringsOnly";
6754
+ IndexFlags2[IndexFlags2["NoIndexSignatures"] = 2] = "NoIndexSignatures";
6755
+ IndexFlags2[IndexFlags2["NoReducibleCheck"] = 4] = "NoReducibleCheck";
6756
+ return IndexFlags2;
6757
+ })(IndexFlags || {});
6751
6758
  var JsxReferenceKind = /* @__PURE__ */ ((JsxReferenceKind2) => {
6752
6759
  JsxReferenceKind2[JsxReferenceKind2["Component"] = 0] = "Component";
6753
6760
  JsxReferenceKind2[JsxReferenceKind2["Function"] = 1] = "Function";
@@ -8315,20 +8322,6 @@ function patchWriteFileEnsuringDirectory(sys2) {
8315
8322
  (path2) => sys2.directoryExists(path2)
8316
8323
  );
8317
8324
  }
8318
- function getNodeMajorVersion() {
8319
- if (typeof process === "undefined") {
8320
- return void 0;
8321
- }
8322
- const version2 = process.version;
8323
- if (!version2) {
8324
- return void 0;
8325
- }
8326
- const dot = version2.indexOf(".");
8327
- if (dot === -1) {
8328
- return void 0;
8329
- }
8330
- return parseInt(version2.substring(1, dot));
8331
- }
8332
8325
  var sys = (() => {
8333
8326
  const byteOrderMarkIndicator = "\uFEFF";
8334
8327
  function getNodeSystem() {
@@ -8345,14 +8338,12 @@ var sys = (() => {
8345
8338
  let activeSession;
8346
8339
  let profilePath = "./profile.cpuprofile";
8347
8340
  const Buffer2 = require("buffer").Buffer;
8348
- const nodeVersion = getNodeMajorVersion();
8349
- const isNode4OrLater = nodeVersion >= 4;
8350
8341
  const isLinuxOrMacOs = process.platform === "linux" || process.platform === "darwin";
8351
8342
  const platform = _os.platform();
8352
8343
  const useCaseSensitiveFileNames = isFileSystemCaseSensitive();
8353
8344
  const fsRealpath = !!_fs.realpathSync.native ? process.platform === "win32" ? fsRealPathHandlingLongPath : _fs.realpathSync.native : _fs.realpathSync;
8354
8345
  const executingFilePath = __filename.endsWith("sys.js") ? _path.join(_path.dirname(__dirname), "__fake__.js") : __filename;
8355
- const fsSupportsRecursiveFsWatch = isNode4OrLater && (process.platform === "win32" || process.platform === "darwin");
8346
+ const fsSupportsRecursiveFsWatch = process.platform === "win32" || process.platform === "darwin";
8356
8347
  const getCurrentDirectory = memoize(() => process.cwd());
8357
8348
  const { watchFile: watchFile2, watchDirectory } = createSystemWatchFunctions({
8358
8349
  pollingWatchFileWorker: fsWatchFileWorker,
@@ -47281,6 +47272,7 @@ function createTypeChecker(host) {
47281
47272
  var noImplicitThis = getStrictOptionValue(compilerOptions, "noImplicitThis");
47282
47273
  var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
47283
47274
  var keyofStringsOnly = !!compilerOptions.keyofStringsOnly;
47275
+ var defaultIndexFlags = keyofStringsOnly ? 1 /* StringsOnly */ : 0 /* None */;
47284
47276
  var freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : 8192 /* FreshLiteral */;
47285
47277
  var exactOptionalPropertyTypes = compilerOptions.exactOptionalPropertyTypes;
47286
47278
  var checkBinaryExpression = createCheckBinaryExpression();
@@ -57269,10 +57261,9 @@ function createTypeChecker(host) {
57269
57261
  return [sig.parameters];
57270
57262
  function expandSignatureParametersWithTupleMembers(restType, restIndex) {
57271
57263
  const elementTypes = getTypeArguments(restType);
57272
- const associatedNames = restType.target.labeledElementDeclarations;
57264
+ const associatedNames = getUniqAssociatedNamesFromTupleType(restType);
57273
57265
  const restParams = map(elementTypes, (t, i) => {
57274
- const tupleLabelName = !!associatedNames && getTupleElementLabel(associatedNames[i]);
57275
- const name = tupleLabelName || getParameterNameAtPosition(sig, restIndex + i, restType);
57266
+ const name = associatedNames && associatedNames[i] ? associatedNames[i] : getParameterNameAtPosition(sig, restIndex + i, restType);
57276
57267
  const flags = restType.target.elementFlags[i];
57277
57268
  const checkFlags = flags & 12 /* Variable */ ? 32768 /* RestParameter */ : flags & 2 /* Optional */ ? 16384 /* OptionalParameter */ : 0;
57278
57269
  const symbol = createSymbol(1 /* FunctionScopedVariable */, name, checkFlags);
@@ -57281,6 +57272,20 @@ function createTypeChecker(host) {
57281
57272
  });
57282
57273
  return concatenate(sig.parameters.slice(0, restIndex), restParams);
57283
57274
  }
57275
+ function getUniqAssociatedNamesFromTupleType(type) {
57276
+ const associatedNamesMap = /* @__PURE__ */ new Map();
57277
+ return map(type.target.labeledElementDeclarations, (labeledElement) => {
57278
+ const name = getTupleElementLabel(labeledElement);
57279
+ const prevCounter = associatedNamesMap.get(name);
57280
+ if (prevCounter === void 0) {
57281
+ associatedNamesMap.set(name, 1);
57282
+ return name;
57283
+ } else {
57284
+ associatedNamesMap.set(name, prevCounter + 1);
57285
+ return `${name}_${prevCounter}`;
57286
+ }
57287
+ });
57288
+ }
57284
57289
  }
57285
57290
  function getDefaultConstructSignatures(classType) {
57286
57291
  const baseConstructorType = getBaseConstructorTypeOfClass(classType);
@@ -58536,6 +58541,13 @@ function createTypeChecker(host) {
58536
58541
  function isConflictingPrivateProperty(prop) {
58537
58542
  return !prop.valueDeclaration && !!(getCheckFlags(prop) & 1024 /* ContainsPrivate */);
58538
58543
  }
58544
+ function isGenericReducibleType(type) {
58545
+ return !!(type.flags & 1048576 /* Union */ && type.objectFlags & 16777216 /* ContainsIntersections */ && some(type.types, isGenericReducibleType) || type.flags & 2097152 /* Intersection */ && isReducibleIntersection(type));
58546
+ }
58547
+ function isReducibleIntersection(type) {
58548
+ const uniqueFilled = type.uniqueLiteralFilledInstantiation || (type.uniqueLiteralFilledInstantiation = instantiateType(type, uniqueLiteralMapper));
58549
+ return getReducedType(uniqueFilled) !== uniqueFilled;
58550
+ }
58539
58551
  function elaborateNeverIntersection(errorInfo, type) {
58540
58552
  if (type.flags & 2097152 /* Intersection */ && getObjectFlags(type) & 33554432 /* IsNeverIntersection */) {
58541
58553
  const neverProp = find(getPropertiesOfUnionOrIntersectionType(type), isDiscriminantWithNeverType);
@@ -59978,7 +59990,7 @@ function createTypeChecker(host) {
59978
59990
  }
59979
59991
  function getGlobalOmitSymbol() {
59980
59992
  deferredGlobalOmitSymbol || (deferredGlobalOmitSymbol = getGlobalTypeAliasSymbol(
59981
- "MappedOmit",
59993
+ "Omit",
59982
59994
  /*arity*/
59983
59995
  2,
59984
59996
  /*reportErrors*/
@@ -60905,10 +60917,10 @@ function createTypeChecker(host) {
60905
60917
  }
60906
60918
  return links.resolvedType;
60907
60919
  }
60908
- function createIndexType(type, stringsOnly) {
60920
+ function createIndexType(type, indexFlags) {
60909
60921
  const result = createType(4194304 /* Index */);
60910
60922
  result.type = type;
60911
- result.stringsOnly = stringsOnly;
60923
+ result.indexFlags = indexFlags;
60912
60924
  return result;
60913
60925
  }
60914
60926
  function createOriginIndexType(type) {
@@ -60916,31 +60928,23 @@ function createTypeChecker(host) {
60916
60928
  result.type = type;
60917
60929
  return result;
60918
60930
  }
60919
- function getIndexTypeForGenericType(type, stringsOnly) {
60920
- return stringsOnly ? type.resolvedStringIndexType || (type.resolvedStringIndexType = createIndexType(
60921
- type,
60922
- /*stringsOnly*/
60923
- true
60924
- )) : type.resolvedIndexType || (type.resolvedIndexType = createIndexType(
60925
- type,
60926
- /*stringsOnly*/
60927
- false
60928
- ));
60931
+ function getIndexTypeForGenericType(type, indexFlags) {
60932
+ return indexFlags & 1 /* StringsOnly */ ? type.resolvedStringIndexType || (type.resolvedStringIndexType = createIndexType(type, 1 /* StringsOnly */)) : type.resolvedIndexType || (type.resolvedIndexType = createIndexType(type, 0 /* None */));
60929
60933
  }
60930
- function getIndexTypeForMappedType(type, stringsOnly, noIndexSignatures) {
60934
+ function getIndexTypeForMappedType(type, indexFlags) {
60931
60935
  const typeParameter = getTypeParameterFromMappedType(type);
60932
60936
  const constraintType = getConstraintTypeFromMappedType(type);
60933
60937
  const nameType = getNameTypeFromMappedType(type.target || type);
60934
- if (!nameType && !noIndexSignatures) {
60938
+ if (!nameType && !(indexFlags & 2 /* NoIndexSignatures */)) {
60935
60939
  return constraintType;
60936
60940
  }
60937
60941
  const keyTypes = [];
60938
60942
  if (isMappedTypeWithKeyofConstraintDeclaration(type)) {
60939
60943
  if (!isGenericIndexType(constraintType)) {
60940
60944
  const modifiersType = getApparentType(getModifiersTypeFromMappedType(type));
60941
- forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, 8576 /* StringOrNumberLiteralOrUnique */, stringsOnly, addMemberForKeyType);
60945
+ forEachMappedTypePropertyKeyTypeAndIndexSignatureKeyType(modifiersType, 8576 /* StringOrNumberLiteralOrUnique */, !!(indexFlags & 1 /* StringsOnly */), addMemberForKeyType);
60942
60946
  } else {
60943
- return getIndexTypeForGenericType(type, stringsOnly);
60947
+ return getIndexTypeForGenericType(type, indexFlags);
60944
60948
  }
60945
60949
  } else {
60946
60950
  forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType);
@@ -60948,7 +60952,7 @@ function createTypeChecker(host) {
60948
60952
  if (isGenericIndexType(constraintType)) {
60949
60953
  forEachType(constraintType, addMemberForKeyType);
60950
60954
  }
60951
- const result = noIndexSignatures ? filterType(getUnionType(keyTypes), (t) => !(t.flags & (1 /* Any */ | 4 /* String */))) : getUnionType(keyTypes);
60955
+ const result = indexFlags & 2 /* NoIndexSignatures */ ? filterType(getUnionType(keyTypes), (t) => !(t.flags & (1 /* Any */ | 4 /* String */))) : getUnionType(keyTypes);
60952
60956
  if (result.flags & 1048576 /* Union */ && constraintType.flags & 1048576 /* Union */ && getTypeListId(result.types) === getTypeListId(constraintType.types)) {
60953
60957
  return constraintType;
60954
60958
  }
@@ -61001,19 +61005,15 @@ function createTypeChecker(host) {
61001
61005
  origin
61002
61006
  );
61003
61007
  }
61004
- function isPossiblyReducibleByInstantiation(type) {
61005
- const uniqueFilled = getUniqueLiteralFilledInstantiation(type);
61006
- return getReducedType(uniqueFilled) !== uniqueFilled;
61007
- }
61008
- function shouldDeferIndexType(type) {
61009
- return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && !hasDistributiveNameType(type) || type.flags & 1048576 /* Union */ && some(type.types, isPossiblyReducibleByInstantiation) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */) && some(type.types, isEmptyAnonymousObjectType));
61008
+ function shouldDeferIndexType(type, indexFlags = 0 /* None */) {
61009
+ return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && !hasDistributiveNameType(type) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */) && some(type.types, isEmptyAnonymousObjectType));
61010
61010
  }
61011
- function getIndexType(type, stringsOnly = keyofStringsOnly, noIndexSignatures) {
61011
+ function getIndexType(type, indexFlags = defaultIndexFlags) {
61012
61012
  type = getReducedType(type);
61013
- return shouldDeferIndexType(type) ? getIndexTypeForGenericType(type, stringsOnly) : type.flags & 1048576 /* Union */ ? getIntersectionType(map(type.types, (t) => getIndexType(t, stringsOnly, noIndexSignatures))) : type.flags & 2097152 /* Intersection */ ? getUnionType(map(type.types, (t) => getIndexType(t, stringsOnly, noIndexSignatures))) : getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, stringsOnly, noIndexSignatures) : type === wildcardType ? wildcardType : type.flags & 2 /* Unknown */ ? neverType : type.flags & (1 /* Any */ | 131072 /* Never */) ? keyofConstraintType : getLiteralTypeFromProperties(
61013
+ return shouldDeferIndexType(type, indexFlags) ? getIndexTypeForGenericType(type, indexFlags) : type.flags & 1048576 /* Union */ ? getIntersectionType(map(type.types, (t) => getIndexType(t, indexFlags))) : type.flags & 2097152 /* Intersection */ ? getUnionType(map(type.types, (t) => getIndexType(t, indexFlags))) : getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, indexFlags) : type === wildcardType ? wildcardType : type.flags & 2 /* Unknown */ ? neverType : type.flags & (1 /* Any */ | 131072 /* Never */) ? keyofConstraintType : getLiteralTypeFromProperties(
61014
61014
  type,
61015
- (noIndexSignatures ? 128 /* StringLiteral */ : 402653316 /* StringLike */) | (stringsOnly ? 0 : 296 /* NumberLike */ | 12288 /* ESSymbolLike */),
61016
- stringsOnly === keyofStringsOnly && !noIndexSignatures
61015
+ (indexFlags & 2 /* NoIndexSignatures */ ? 128 /* StringLiteral */ : 402653316 /* StringLike */) | (indexFlags & 1 /* StringsOnly */ ? 0 : 296 /* NumberLike */ | 12288 /* ESSymbolLike */),
61016
+ indexFlags === defaultIndexFlags
61017
61017
  );
61018
61018
  }
61019
61019
  function getExtractStringType(type) {
@@ -61553,12 +61553,13 @@ function createTypeChecker(host) {
61553
61553
  if (objectType === wildcardType || indexType === wildcardType) {
61554
61554
  return wildcardType;
61555
61555
  }
61556
+ objectType = getReducedType(objectType);
61556
61557
  if (isStringIndexSignatureOnlyType(objectType) && !(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) {
61557
61558
  indexType = stringType;
61558
61559
  }
61559
61560
  if (compilerOptions.noUncheckedIndexedAccess && accessFlags & 32 /* ExpressionPosition */)
61560
61561
  accessFlags |= 1 /* IncludeUndefined */;
61561
- if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 197 /* IndexedAccessType */ ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, objectType.target.fixedLength) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, objectType.target.fixedLength)))) {
61562
+ if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 197 /* IndexedAccessType */ ? isGenericTupleType(objectType) && !indexTypeLessThan(indexType, objectType.target.fixedLength) : isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, objectType.target.fixedLength)) || isGenericReducibleType(objectType))) {
61562
61563
  if (objectType.flags & 3 /* AnyOrUnknown */) {
61563
61564
  return objectType;
61564
61565
  }
@@ -62744,9 +62745,6 @@ function createTypeChecker(host) {
62744
62745
  }
62745
62746
  return type;
62746
62747
  }
62747
- function getUniqueLiteralFilledInstantiation(type) {
62748
- return type.flags & (402784252 /* Primitive */ | 3 /* AnyOrUnknown */ | 131072 /* Never */) ? type : type.uniqueLiteralFilledInstantiation || (type.uniqueLiteralFilledInstantiation = instantiateType(type, uniqueLiteralMapper));
62749
- }
62750
62748
  function getPermissiveInstantiation(type) {
62751
62749
  return type.flags & (402784252 /* Primitive */ | 3 /* AnyOrUnknown */ | 131072 /* Never */) ? type : type.permissiveInstantiation || (type.permissiveInstantiation = instantiateType(type, permissiveMapper));
62752
62750
  }
@@ -64941,7 +64939,7 @@ function createTypeChecker(host) {
64941
64939
  } else {
64942
64940
  const constraint = getSimplifiedTypeOrConstraint(targetType);
64943
64941
  if (constraint) {
64944
- if (isRelatedTo(source2, getIndexType(constraint, target2.stringsOnly), 2 /* Target */, reportErrors2) === -1 /* True */) {
64942
+ if (isRelatedTo(source2, getIndexType(constraint, target2.indexFlags | 4 /* NoReducibleCheck */), 2 /* Target */, reportErrors2) === -1 /* True */) {
64945
64943
  return -1 /* True */;
64946
64944
  }
64947
64945
  } else if (isGenericMappedType(targetType)) {
@@ -65022,13 +65020,7 @@ function createTypeChecker(host) {
65022
65020
  }
65023
65021
  if (!isGenericMappedType(source2)) {
65024
65022
  const targetKeys = keysRemapped ? getNameTypeFromMappedType(target2) : getConstraintTypeFromMappedType(target2);
65025
- const sourceKeys = getIndexType(
65026
- source2,
65027
- /*stringsOnly*/
65028
- void 0,
65029
- /*noIndexSignatures*/
65030
- true
65031
- );
65023
+ const sourceKeys = getIndexType(source2, 2 /* NoIndexSignatures */);
65032
65024
  const includeOptional = modifiers & 4 /* IncludeOptional */;
65033
65025
  const filteredByApplicability = includeOptional ? intersectTypes(targetKeys, sourceKeys) : void 0;
65034
65026
  if (includeOptional ? !(filteredByApplicability.flags & 131072 /* Never */) : isRelatedTo(targetKeys, sourceKeys, 3 /* Both */)) {
@@ -71860,13 +71852,14 @@ function createTypeChecker(host) {
71860
71852
  const elementFlags = [];
71861
71853
  pushCachedContextualType(node);
71862
71854
  const inDestructuringPattern = isAssignmentTarget(node);
71863
- const inConstContext = isConstContext(node);
71855
+ const isSpreadIntoCallOrNew = isSpreadElement(node.parent) && isCallOrNewExpression(node.parent.parent);
71856
+ const inConstContext = isSpreadIntoCallOrNew || isConstContext(node);
71864
71857
  const contextualType = getApparentTypeOfContextualType(
71865
71858
  node,
71866
71859
  /*contextFlags*/
71867
71860
  void 0
71868
71861
  );
71869
- const inTupleContext = !!contextualType && someType(contextualType, isTupleLikeType);
71862
+ const inTupleContext = isSpreadIntoCallOrNew || !!contextualType && someType(contextualType, isTupleLikeType);
71870
71863
  let hasOmittedExpression = false;
71871
71864
  for (let i = 0; i < elementCount; i++) {
71872
71865
  const e = elements[i];
@@ -79260,11 +79253,7 @@ function createTypeChecker(host) {
79260
79253
  }
79261
79254
  const objectType = type.objectType;
79262
79255
  const indexType = type.indexType;
79263
- if (isTypeAssignableTo(indexType, getIndexType(
79264
- objectType,
79265
- /*stringsOnly*/
79266
- false
79267
- ))) {
79256
+ if (isTypeAssignableTo(indexType, getIndexType(objectType, 0 /* None */))) {
79268
79257
  if (accessNode.kind === 210 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) {
79269
79258
  error(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType));
79270
79259
  }
@@ -143984,9 +143973,10 @@ function getInfo7(sourceFile, tokenPos, errorCode, checker, program) {
143984
143973
  if (!isMemberName(token))
143985
143974
  return void 0;
143986
143975
  if (isIdentifier(token) && hasInitializer(parent2) && parent2.initializer && isObjectLiteralExpression(parent2.initializer)) {
143976
+ const targetType = checker.getContextualType(token) || checker.getTypeAtLocation(token);
143987
143977
  const properties = arrayFrom(checker.getUnmatchedProperties(
143988
143978
  checker.getTypeAtLocation(parent2.initializer),
143989
- checker.getTypeAtLocation(token),
143979
+ targetType,
143990
143980
  /* requireOptionalProperties */
143991
143981
  false,
143992
143982
  /* matchDiscriminantProperties */
@@ -168074,6 +168064,7 @@ __export(ts_exports3, {
168074
168064
  ImportKind: () => ImportKind,
168075
168065
  ImportsNotUsedAsValues: () => ImportsNotUsedAsValues,
168076
168066
  IndentStyle: () => IndentStyle,
168067
+ IndexFlags: () => IndexFlags,
168077
168068
  IndexKind: () => IndexKind,
168078
168069
  InferenceFlags: () => InferenceFlags,
168079
168070
  InferencePriority: () => InferencePriority,
@@ -168866,7 +168857,6 @@ __export(ts_exports3, {
168866
168857
  getNodeForGeneratedName: () => getNodeForGeneratedName,
168867
168858
  getNodeId: () => getNodeId,
168868
168859
  getNodeKind: () => getNodeKind,
168869
- getNodeMajorVersion: () => getNodeMajorVersion,
168870
168860
  getNodeModifiers: () => getNodeModifiers,
168871
168861
  getNodeModulePathParts: () => getNodeModulePathParts,
168872
168862
  getNonAssignedNameOfDeclaration: () => getNonAssignedNameOfDeclaration,
@@ -181392,8 +181382,7 @@ function initializeNodeSystem() {
181392
181382
  }
181393
181383
  }
181394
181384
  const libDirectory = getDirectoryPath(normalizePath(sys2.getExecutingFilePath()));
181395
- const nodeVersion = getNodeMajorVersion();
181396
- const useWatchGuard = process.platform === "win32" && nodeVersion >= 4;
181385
+ const useWatchGuard = process.platform === "win32";
181397
181386
  const originalWatchDirectory = sys2.watchDirectory.bind(sys2);
181398
181387
  const logger = createLogger();
181399
181388
  Debug.loggingHost = {
@@ -181948,7 +181937,7 @@ function start({ args, logger, cancellationToken, serverMode, unknownServerMode,
181948
181937
  logger.info(`Starting TS Server`);
181949
181938
  logger.info(`Version: ${version}`);
181950
181939
  logger.info(`Arguments: ${args.join(" ")}`);
181951
- logger.info(`Platform: ${platform} NodeVersion: ${getNodeMajorVersion()} CaseSensitive: ${sys.useCaseSensitiveFileNames}`);
181940
+ logger.info(`Platform: ${platform} NodeVersion: ${process.version} CaseSensitive: ${sys.useCaseSensitiveFileNames}`);
181952
181941
  logger.info(`ServerMode: ${serverMode} hasUnknownServerMode: ${unknownServerMode}`);
181953
181942
  setStackTraceLimit();
181954
181943
  if (Debug.isDebugging) {
@@ -182034,6 +182023,7 @@ start(initializeNodeSystem(), require("os").platform());
182034
182023
  ImportKind,
182035
182024
  ImportsNotUsedAsValues,
182036
182025
  IndentStyle,
182026
+ IndexFlags,
182037
182027
  IndexKind,
182038
182028
  InferenceFlags,
182039
182029
  InferencePriority,
@@ -182826,7 +182816,6 @@ start(initializeNodeSystem(), require("os").platform());
182826
182816
  getNodeForGeneratedName,
182827
182817
  getNodeId,
182828
182818
  getNodeKind,
182829
- getNodeMajorVersion,
182830
182819
  getNodeModifiers,
182831
182820
  getNodeModulePathParts,
182832
182821
  getNonAssignedNameOfDeclaration,
@@ -8285,7 +8285,6 @@ declare namespace ts {
8285
8285
  negative: boolean;
8286
8286
  base10Value: string;
8287
8287
  }
8288
- function getNodeMajorVersion(): number | undefined;
8289
8288
  enum FileWatcherEventKind {
8290
8289
  Created = 0,
8291
8290
  Changed = 1,