@typescript-deploys/pr-build 6.0.0-pr-62876-10 → 6.0.0-pr-63067-4

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.
Files changed (110) hide show
  1. package/lib/_tsc.js +132 -90
  2. package/lib/_tsserver.js +1 -1
  3. package/lib/_typingsInstaller.js +1 -1
  4. package/lib/lib.d.ts +1 -1
  5. package/lib/lib.decorators.d.ts +1 -1
  6. package/lib/lib.decorators.legacy.d.ts +1 -1
  7. package/lib/lib.dom.asynciterable.d.ts +1 -1
  8. package/lib/lib.dom.d.ts +1 -1
  9. package/lib/lib.dom.iterable.d.ts +1 -1
  10. package/lib/lib.es2015.collection.d.ts +1 -1
  11. package/lib/lib.es2015.core.d.ts +2 -2
  12. package/lib/lib.es2015.d.ts +1 -1
  13. package/lib/lib.es2015.generator.d.ts +1 -1
  14. package/lib/lib.es2015.iterable.d.ts +1 -1
  15. package/lib/lib.es2015.promise.d.ts +1 -1
  16. package/lib/lib.es2015.proxy.d.ts +1 -1
  17. package/lib/lib.es2015.reflect.d.ts +1 -1
  18. package/lib/lib.es2015.symbol.d.ts +1 -1
  19. package/lib/lib.es2015.symbol.wellknown.d.ts +1 -1
  20. package/lib/lib.es2016.array.include.d.ts +1 -1
  21. package/lib/lib.es2016.d.ts +1 -1
  22. package/lib/lib.es2016.full.d.ts +1 -1
  23. package/lib/lib.es2016.intl.d.ts +1 -1
  24. package/lib/lib.es2017.arraybuffer.d.ts +1 -1
  25. package/lib/lib.es2017.d.ts +1 -1
  26. package/lib/lib.es2017.date.d.ts +1 -1
  27. package/lib/lib.es2017.full.d.ts +1 -1
  28. package/lib/lib.es2017.intl.d.ts +1 -1
  29. package/lib/lib.es2017.object.d.ts +1 -1
  30. package/lib/lib.es2017.sharedmemory.d.ts +1 -1
  31. package/lib/lib.es2017.string.d.ts +1 -1
  32. package/lib/lib.es2017.typedarrays.d.ts +1 -1
  33. package/lib/lib.es2018.asyncgenerator.d.ts +1 -1
  34. package/lib/lib.es2018.asynciterable.d.ts +1 -1
  35. package/lib/lib.es2018.d.ts +1 -1
  36. package/lib/lib.es2018.full.d.ts +1 -1
  37. package/lib/lib.es2018.intl.d.ts +1 -1
  38. package/lib/lib.es2018.promise.d.ts +1 -1
  39. package/lib/lib.es2018.regexp.d.ts +1 -1
  40. package/lib/lib.es2019.array.d.ts +1 -1
  41. package/lib/lib.es2019.d.ts +1 -1
  42. package/lib/lib.es2019.full.d.ts +1 -1
  43. package/lib/lib.es2019.intl.d.ts +1 -1
  44. package/lib/lib.es2019.object.d.ts +1 -1
  45. package/lib/lib.es2019.string.d.ts +1 -1
  46. package/lib/lib.es2019.symbol.d.ts +1 -1
  47. package/lib/lib.es2020.bigint.d.ts +1 -1
  48. package/lib/lib.es2020.d.ts +1 -1
  49. package/lib/lib.es2020.date.d.ts +1 -1
  50. package/lib/lib.es2020.full.d.ts +1 -1
  51. package/lib/lib.es2020.intl.d.ts +1 -1
  52. package/lib/lib.es2020.number.d.ts +1 -1
  53. package/lib/lib.es2020.promise.d.ts +1 -1
  54. package/lib/lib.es2020.sharedmemory.d.ts +1 -1
  55. package/lib/lib.es2020.string.d.ts +2 -2
  56. package/lib/lib.es2020.symbol.wellknown.d.ts +1 -1
  57. package/lib/lib.es2021.d.ts +1 -1
  58. package/lib/lib.es2021.full.d.ts +1 -1
  59. package/lib/lib.es2021.intl.d.ts +1 -1
  60. package/lib/lib.es2021.promise.d.ts +1 -1
  61. package/lib/lib.es2021.string.d.ts +1 -1
  62. package/lib/lib.es2021.weakref.d.ts +1 -1
  63. package/lib/lib.es2022.array.d.ts +1 -1
  64. package/lib/lib.es2022.d.ts +1 -1
  65. package/lib/lib.es2022.error.d.ts +1 -1
  66. package/lib/lib.es2022.full.d.ts +1 -1
  67. package/lib/lib.es2022.intl.d.ts +1 -1
  68. package/lib/lib.es2022.object.d.ts +1 -1
  69. package/lib/lib.es2022.regexp.d.ts +1 -1
  70. package/lib/lib.es2022.string.d.ts +1 -1
  71. package/lib/lib.es2023.array.d.ts +1 -1
  72. package/lib/lib.es2023.collection.d.ts +1 -1
  73. package/lib/lib.es2023.d.ts +1 -1
  74. package/lib/lib.es2023.full.d.ts +1 -1
  75. package/lib/lib.es2023.intl.d.ts +1 -1
  76. package/lib/lib.es2024.arraybuffer.d.ts +1 -1
  77. package/lib/lib.es2024.collection.d.ts +1 -1
  78. package/lib/lib.es2024.d.ts +1 -1
  79. package/lib/lib.es2024.full.d.ts +1 -1
  80. package/lib/lib.es2024.object.d.ts +1 -1
  81. package/lib/lib.es2024.promise.d.ts +1 -1
  82. package/lib/lib.es2024.regexp.d.ts +1 -1
  83. package/lib/lib.es2024.sharedmemory.d.ts +1 -1
  84. package/lib/lib.es2024.string.d.ts +1 -1
  85. package/lib/lib.es5.d.ts +1 -1
  86. package/lib/lib.es6.d.ts +1 -1
  87. package/lib/lib.esnext.array.d.ts +1 -1
  88. package/lib/lib.esnext.collection.d.ts +1 -1
  89. package/lib/lib.esnext.d.ts +1 -1
  90. package/lib/lib.esnext.decorators.d.ts +1 -1
  91. package/lib/lib.esnext.disposable.d.ts +1 -1
  92. package/lib/lib.esnext.error.d.ts +1 -1
  93. package/lib/lib.esnext.float16.d.ts +1 -1
  94. package/lib/lib.esnext.full.d.ts +1 -1
  95. package/lib/lib.esnext.intl.d.ts +1 -1
  96. package/lib/lib.esnext.iterator.d.ts +1 -1
  97. package/lib/lib.esnext.promise.d.ts +1 -1
  98. package/lib/lib.esnext.sharedmemory.d.ts +1 -1
  99. package/lib/lib.esnext.typedarrays.d.ts +1 -1
  100. package/lib/lib.scripthost.d.ts +1 -1
  101. package/lib/lib.webworker.asynciterable.d.ts +1 -1
  102. package/lib/lib.webworker.d.ts +1 -1
  103. package/lib/lib.webworker.importscripts.d.ts +1 -1
  104. package/lib/lib.webworker.iterable.d.ts +1 -1
  105. package/lib/tsserverlibrary.d.ts +1 -1
  106. package/lib/tsserverlibrary.js +1 -1
  107. package/lib/typescript.d.ts +5 -1
  108. package/lib/typescript.js +154 -92
  109. package/lib/watchGuard.js +1 -1
  110. package/package.json +1 -1
package/lib/_tsc.js CHANGED
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "6.0";
21
- var version = `${versionMajorMinor}.0-insiders.20251211`;
21
+ var version = `${versionMajorMinor}.0-insiders.20260130`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -3615,7 +3615,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
3615
3615
  TypeFlags2[TypeFlags2["Instantiable"] = 465829888] = "Instantiable";
3616
3616
  TypeFlags2[TypeFlags2["StructuredOrInstantiable"] = 469499904] = "StructuredOrInstantiable";
3617
3617
  TypeFlags2[TypeFlags2["ObjectFlagsType"] = 3899393] = "ObjectFlagsType";
3618
- TypeFlags2[TypeFlags2["Simplifiable"] = 25165824] = "Simplifiable";
3618
+ TypeFlags2[TypeFlags2["Simplifiable"] = 29360128] = "Simplifiable";
3619
3619
  TypeFlags2[TypeFlags2["Singleton"] = 67358815] = "Singleton";
3620
3620
  TypeFlags2[TypeFlags2["Narrowable"] = 536624127] = "Narrowable";
3621
3621
  TypeFlags2[TypeFlags2["IncludesMask"] = 473694207] = "IncludesMask";
@@ -6926,6 +6926,7 @@ var Diagnostics = {
6926
6926
  The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
6927
6927
  Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
6928
6928
  File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
6929
+ The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another_path_to_adjust_your_output_s_file_layout: diag(5011, 1 /* Error */, "The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another__5011", "The common source directory of '{0}' is '{1}'. The 'rootDir' setting must be explicitly set to this or another path to adjust your output's file layout."),
6929
6930
  Cannot_read_file_0_Colon_1: diag(5012, 1 /* Error */, "Cannot_read_file_0_Colon_1_5012", "Cannot read file '{0}': {1}."),
6930
6931
  Unknown_compiler_option_0: diag(5023, 1 /* Error */, "Unknown_compiler_option_0_5023", "Unknown compiler option '{0}'."),
6931
6932
  Compiler_option_0_requires_a_value_of_type_1: diag(5024, 1 /* Error */, "Compiler_option_0_requires_a_value_of_type_1_5024", "Compiler option '{0}' requires a value of type {1}."),
@@ -16572,7 +16573,7 @@ function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {
16572
16573
  if (host.getRedirectFromSourceFile(sourceFile.fileName)) return false;
16573
16574
  if (options.outFile) return true;
16574
16575
  if (!options.outDir) return false;
16575
- if (options.rootDir || options.composite && options.configFilePath) {
16576
+ if (options.rootDir || options.configFilePath) {
16576
16577
  const commonDir = getNormalizedAbsolutePath(getCommonSourceDirectory(options, () => [], host.getCurrentDirectory(), host.getCanonicalFileName), host.getCurrentDirectory());
16577
16578
  const outputPath = getSourceFilePathInNewDirWorker(sourceFile.fileName, options.outDir, host.getCurrentDirectory(), commonDir, host.getCanonicalFileName);
16578
16579
  if (comparePaths(sourceFile.fileName, outputPath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */) return false;
@@ -17953,10 +17954,10 @@ var _computedOptions = createComputedCompilerOptions({
17953
17954
  }
17954
17955
  },
17955
17956
  target: {
17956
- dependencies: ["module"],
17957
+ dependencies: [],
17957
17958
  computeValue: (compilerOptions) => {
17958
17959
  const target = compilerOptions.target === 0 /* ES3 */ ? void 0 : compilerOptions.target;
17959
- return target ?? (compilerOptions.module === 100 /* Node16 */ && 9 /* ES2022 */ || compilerOptions.module === 101 /* Node18 */ && 9 /* ES2022 */ || compilerOptions.module === 102 /* Node20 */ && 10 /* ES2023 */ || compilerOptions.module === 199 /* NodeNext */ && 99 /* ESNext */ || 1 /* ES5 */);
17960
+ return target ?? 11 /* CurrentYear */;
17960
17961
  }
17961
17962
  },
17962
17963
  module: {
@@ -24138,7 +24139,7 @@ function createNodeFactory(flags, baseFactory2) {
24138
24139
  node.path = "";
24139
24140
  node.resolvedPath = "";
24140
24141
  node.originalFileName = "";
24141
- node.languageVersion = 1 /* ES5 */;
24142
+ node.languageVersion = 11 /* CurrentYear */;
24142
24143
  node.languageVariant = 0;
24143
24144
  node.scriptKind = 0;
24144
24145
  node.isDeclarationFile = false;
@@ -36756,12 +36757,12 @@ var targetOptionDeclaration = {
36756
36757
  affectsModuleResolution: true,
36757
36758
  affectsEmit: true,
36758
36759
  affectsBuildInfo: true,
36759
- deprecatedKeys: /* @__PURE__ */ new Set(["es3"]),
36760
+ deprecatedKeys: /* @__PURE__ */ new Set(["es3", "es5"]),
36760
36761
  paramType: Diagnostics.VERSION,
36761
36762
  showInSimplifiedHelpView: true,
36762
36763
  category: Diagnostics.Language_and_Environment,
36763
36764
  description: Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,
36764
- defaultValueDescription: 1 /* ES5 */
36765
+ defaultValueDescription: 11 /* CurrentYear */
36765
36766
  };
36766
36767
  var moduleOptionDeclaration = {
36767
36768
  name: "module",
@@ -41717,7 +41718,7 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
41717
41718
  if (!state.isConfigLookup && (state.compilerOptions.declarationDir || state.compilerOptions.outDir) && !finalPath.includes("/node_modules/") && (state.compilerOptions.configFile ? containsPath(scope.packageDirectory, toAbsolutePath(state.compilerOptions.configFile.fileName), !useCaseSensitiveFileNames(state)) : true)) {
41718
41719
  const getCanonicalFileName = hostGetCanonicalFileName({ useCaseSensitiveFileNames: () => useCaseSensitiveFileNames(state) });
41719
41720
  const commonSourceDirGuesses = [];
41720
- if (state.compilerOptions.rootDir || state.compilerOptions.composite && state.compilerOptions.configFilePath) {
41721
+ if (state.compilerOptions.rootDir || state.compilerOptions.configFilePath) {
41721
41722
  const commonDir = toAbsolutePath(getCommonSourceDirectory(state.compilerOptions, () => [], ((_b2 = (_a2 = state.host).getCurrentDirectory) == null ? void 0 : _b2.call(_a2)) || "", getCanonicalFileName));
41722
41723
  commonSourceDirGuesses.push(commonDir);
41723
41724
  } else if (state.requestContainingDirectory) {
@@ -48504,6 +48505,15 @@ function createTypeChecker(host) {
48504
48505
  if (usageMode === 99 /* ESNext */ && targetMode === 99 /* ESNext */) {
48505
48506
  return false;
48506
48507
  }
48508
+ if (!targetMode && file.isDeclarationFile) {
48509
+ const redirect = host.getRedirectFromSourceFile(file.path) || host.getRedirectFromOutput(file.path);
48510
+ if (redirect) {
48511
+ const targetModuleKind = host.getEmitModuleFormatOfFile(file);
48512
+ if (usageMode === 99 /* ESNext */ && 5 /* ES2015 */ <= targetModuleKind && targetModuleKind <= 99 /* ESNext */) {
48513
+ return false;
48514
+ }
48515
+ }
48516
+ }
48507
48517
  }
48508
48518
  if (!allowSyntheticDefaultImports) {
48509
48519
  return false;
@@ -57073,6 +57083,9 @@ function createTypeChecker(host) {
57073
57083
  ));
57074
57084
  }
57075
57085
  function getBaseTypes(type) {
57086
+ if (!(getObjectFlags(type) & (3 /* ClassOrInterface */ | 4 /* Reference */))) {
57087
+ return emptyArray;
57088
+ }
57076
57089
  if (!type.baseTypesResolved) {
57077
57090
  if (pushTypeResolution(type, 6 /* ResolvedBaseTypes */)) {
57078
57091
  if (type.objectFlags & 8 /* Tuple */) {
@@ -58834,6 +58847,12 @@ function createTypeChecker(host) {
58834
58847
  return t.flags & 1048576 /* Union */ && baseTypes.length === types.length ? getUnionType(baseTypes) : t.flags & 2097152 /* Intersection */ && baseTypes.length ? getIntersectionType(baseTypes) : void 0;
58835
58848
  }
58836
58849
  if (t.flags & 4194304 /* Index */) {
58850
+ if (isGenericMappedType(t.type)) {
58851
+ const mappedType = t.type;
58852
+ if (getNameTypeFromMappedType(mappedType) && !isMappedTypeWithKeyofConstraintDeclaration(mappedType)) {
58853
+ return getBaseConstraint(getIndexTypeForMappedType(mappedType, 0 /* None */));
58854
+ }
58855
+ }
58837
58856
  return stringNumberSymbolType;
58838
58857
  }
58839
58858
  if (t.flags & 134217728 /* TemplateLiteral */) {
@@ -61809,13 +61828,6 @@ function createTypeChecker(host) {
61809
61828
  keyTypes.push(propNameType === stringType ? stringOrNumberType : propNameType);
61810
61829
  }
61811
61830
  }
61812
- function hasDistributiveNameType(mappedType) {
61813
- const typeVariable = getTypeParameterFromMappedType(mappedType);
61814
- return isDistributive(getNameTypeFromMappedType(mappedType) || typeVariable);
61815
- function isDistributive(type) {
61816
- return type.flags & (3 /* AnyOrUnknown */ | 402784252 /* Primitive */ | 131072 /* Never */ | 262144 /* TypeParameter */ | 524288 /* Object */ | 67108864 /* NonPrimitive */) ? true : type.flags & 16777216 /* Conditional */ ? type.root.isDistributive && type.checkType === typeVariable : type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */) ? every(type.types, isDistributive) : type.flags & 8388608 /* IndexedAccess */ ? isDistributive(type.objectType) && isDistributive(type.indexType) : type.flags & 33554432 /* Substitution */ ? isDistributive(type.baseType) && isDistributive(type.constraint) : type.flags & 268435456 /* StringMapping */ ? isDistributive(type.type) : false;
61817
- }
61818
- }
61819
61831
  function getLiteralTypeFromPropertyName(name) {
61820
61832
  if (isPrivateIdentifier(name)) {
61821
61833
  return neverType;
@@ -61866,7 +61878,7 @@ function createTypeChecker(host) {
61866
61878
  );
61867
61879
  }
61868
61880
  function shouldDeferIndexType(type, indexFlags = 0 /* None */) {
61869
- return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && (!hasDistributiveNameType(type) || getMappedTypeNameTypeKind(type) === 2 /* Remapping */) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */) && some(type.types, isEmptyAnonymousObjectType));
61881
+ return !!(type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && getNameTypeFromMappedType(type) || type.flags & 1048576 /* Union */ && !(indexFlags & 4 /* NoReducibleCheck */) && isGenericReducibleType(type) || type.flags & 2097152 /* Intersection */ && maybeTypeOfKind(type, 465829888 /* Instantiable */) && some(type.types, isEmptyAnonymousObjectType));
61870
61882
  }
61871
61883
  function getIndexType(type, indexFlags = 0 /* None */) {
61872
61884
  type = getReducedType(type);
@@ -62308,7 +62320,7 @@ function createTypeChecker(host) {
62308
62320
  return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 4194304 /* IsGenericObjectType */ : 0) | (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */) || isGenericStringLikeType(type) ? 8388608 /* IsGenericIndexType */ : 0);
62309
62321
  }
62310
62322
  function getSimplifiedType(type, writing) {
62311
- return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type;
62323
+ return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) : type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) : type.flags & 4194304 /* Index */ ? getSimplifiedIndexType(type) : type;
62312
62324
  }
62313
62325
  function distributeIndexOverObjectType(objectType, indexType, writing) {
62314
62326
  if (objectType.flags & 1048576 /* Union */ || objectType.flags & 2097152 /* Intersection */ && !shouldDeferIndexType(objectType)) {
@@ -62379,6 +62391,12 @@ function createTypeChecker(host) {
62379
62391
  }
62380
62392
  return type;
62381
62393
  }
62394
+ function getSimplifiedIndexType(type) {
62395
+ if (isGenericMappedType(type.type) && getNameTypeFromMappedType(type.type) && !isMappedTypeWithKeyofConstraintDeclaration(type.type)) {
62396
+ return getIndexTypeForMappedType(type.type, 0 /* None */);
62397
+ }
62398
+ return type;
62399
+ }
62382
62400
  function isIntersectionEmpty(type1, type2) {
62383
62401
  return !!(getUnionType([intersectTypes(type1, type2), neverType]).flags & 131072 /* Never */);
62384
62402
  }
@@ -64655,7 +64673,7 @@ function createTypeChecker(host) {
64655
64673
  }
64656
64674
  function getNormalizedType(type, writing) {
64657
64675
  while (true) {
64658
- const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(type, writing) : type;
64676
+ const t = isFreshLiteralType(type) ? type.regularType : isGenericTupleType(type) ? getNormalizedTupleType(type, writing) : getObjectFlags(type) & 4 /* Reference */ ? type.node ? createTypeReference(type.target, getTypeArguments(type)) : getSingleBaseForNonAugmentingSubtype(type) || type : type.flags & 3145728 /* UnionOrIntersection */ ? getNormalizedUnionOrIntersectionType(type, writing) : type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : getSubstitutionIntersection(type) : type.flags & 29360128 /* Simplifiable */ ? getSimplifiedType(type, writing) : type;
64659
64677
  if (t === type) return t;
64660
64678
  type = t;
64661
64679
  }
@@ -64685,7 +64703,7 @@ function createTypeChecker(host) {
64685
64703
  }
64686
64704
  function getNormalizedTupleType(type, writing) {
64687
64705
  const elements = getElementTypes(type);
64688
- const normalizedElements = sameMap(elements, (t) => t.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(t, writing) : t);
64706
+ const normalizedElements = sameMap(elements, (t) => t.flags & 29360128 /* Simplifiable */ ? getSimplifiedType(t, writing) : t);
64689
64707
  return elements !== normalizedElements ? createNormalizedTupleType(type.target, normalizedElements) : type;
64690
64708
  }
64691
64709
  function checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer) {
@@ -67104,7 +67122,7 @@ function createTypeChecker(host) {
67104
67122
  }
67105
67123
  function discriminateTypeByDiscriminableItems(target, discriminators, related) {
67106
67124
  const types = target.types;
67107
- const include = types.map((t) => t.flags & 402784252 /* Primitive */ ? 0 /* False */ : -1 /* True */);
67125
+ const include = types.map((t) => t.flags & 402784252 /* Primitive */ || getReducedType(t).flags & 131072 /* Never */ ? 0 /* False */ : -1 /* True */);
67108
67126
  for (const [getDiscriminatingType, propertyName] of discriminators) {
67109
67127
  let matched = false;
67110
67128
  for (let i = 0; i < types.length; i++) {
@@ -72025,7 +72043,7 @@ function createTypeChecker(host) {
72025
72043
  while (flowContainer !== declarationContainer && (flowContainer.kind === 219 /* FunctionExpression */ || flowContainer.kind === 220 /* ArrowFunction */ || isObjectLiteralOrClassExpressionMethodOrAccessor(flowContainer)) && (isConstantVariable(localOrExportSymbol) && type !== autoArrayType || isParameterOrMutableLocalVariable(localOrExportSymbol) && isPastLastAssignment(localOrExportSymbol, node))) {
72026
72044
  flowContainer = getControlFlowContainer(flowContainer);
72027
72045
  }
72028
- const isNeverInitialized = immediateDeclaration && isVariableDeclaration(immediateDeclaration) && !immediateDeclaration.initializer && !immediateDeclaration.exclamationToken && isMutableLocalVariableDeclaration(immediateDeclaration) && !isSymbolAssignedDefinitely(symbol);
72046
+ const isNeverInitialized = immediateDeclaration && isVariableDeclaration(immediateDeclaration) && !isForInOrOfStatement(immediateDeclaration.parent.parent) && !immediateDeclaration.initializer && !immediateDeclaration.exclamationToken && isMutableLocalVariableDeclaration(immediateDeclaration) && !isSymbolAssignedDefinitely(symbol);
72029
72047
  const assumeInitialized = isParameter2 || isAlias || isOuterVariable && !isNeverInitialized || isSpreadDestructuringAssignmentTarget || isModuleExports || isSameScopedBindingElement(node, declaration) || type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 || isInTypeQuery(node) || isInAmbientOrTypeNode(node) || node.parent.kind === 282 /* ExportSpecifier */) || node.parent.kind === 236 /* NonNullExpression */ || declaration.kind === 261 /* VariableDeclaration */ && declaration.exclamationToken || declaration.flags & 33554432 /* Ambient */;
72030
72048
  const initialType = isAutomaticTypeInNonNull ? undefinedType : assumeInitialized ? isParameter2 ? removeOptionalityFromDeclaredType(type, declaration) : type : typeIsAutomatic ? undefinedType : getOptionalType(type);
72031
72049
  const flowType = isAutomaticTypeInNonNull ? getNonNullableType(getFlowTypeOfReference(node, type, initialType, flowContainer)) : getFlowTypeOfReference(node, type, initialType, flowContainer);
@@ -74730,10 +74748,10 @@ function createTypeChecker(host) {
74730
74748
  }
74731
74749
  }
74732
74750
  if (flags & 64 /* Abstract */ && symbolHasNonMethodDeclaration(prop) && (isThisProperty(location) || isThisInitializedObjectBindingExpression(location) || isObjectBindingPattern(location.parent) && isThisInitializedDeclaration(location.parent.parent))) {
74733
- const declaringClassDeclaration = getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop));
74734
- if (declaringClassDeclaration && isNodeUsedDuringClassInitialization(location)) {
74751
+ const parentSymbol = getParentOfSymbol(prop);
74752
+ if (parentSymbol && parentSymbol.flags & 32 /* Class */ && isNodeUsedDuringClassInitialization(location)) {
74735
74753
  if (errorNode) {
74736
- error(errorNode, Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor, symbolToString(prop), getTextOfIdentifierOrLiteral(declaringClassDeclaration.name));
74754
+ error(errorNode, Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor, symbolToString(prop), symbolToString(parentSymbol));
74737
74755
  }
74738
74756
  return false;
74739
74757
  }
@@ -75236,27 +75254,14 @@ function createTypeChecker(host) {
75236
75254
  });
75237
75255
  }
75238
75256
  function isPropertyDeclaredInAncestorClass(prop) {
75239
- if (!(prop.parent.flags & 32 /* Class */)) {
75240
- return false;
75241
- }
75242
- let classType = getTypeOfSymbol(prop.parent);
75243
- while (true) {
75244
- classType = classType.symbol && getSuperClass(classType);
75245
- if (!classType) {
75246
- return false;
75247
- }
75248
- const superProperty = getPropertyOfType(classType, prop.escapedName);
75249
- if (superProperty && superProperty.valueDeclaration) {
75250
- return true;
75257
+ if (prop.parent && prop.parent.flags & 32 /* Class */) {
75258
+ const baseTypes = getBaseTypes(getDeclaredTypeOfSymbol(prop.parent));
75259
+ if (baseTypes.length) {
75260
+ const superProperty = getPropertyOfType(baseTypes[0], prop.escapedName);
75261
+ return !!(superProperty && superProperty.valueDeclaration);
75251
75262
  }
75252
75263
  }
75253
- }
75254
- function getSuperClass(classType) {
75255
- const x = getBaseTypes(classType);
75256
- if (x.length === 0) {
75257
- return void 0;
75258
- }
75259
- return getIntersectionType(x);
75264
+ return false;
75260
75265
  }
75261
75266
  function reportNonexistentProperty(propNode, containingType, isUncheckedJS) {
75262
75267
  const links = getNodeLinks(propNode);
@@ -79792,7 +79797,6 @@ function createTypeChecker(host) {
79792
79797
  }
79793
79798
  }
79794
79799
  checkNullishCoalesceOperandLeft(node);
79795
- checkNullishCoalesceOperandRight(node);
79796
79800
  }
79797
79801
  function checkNullishCoalesceOperandLeft(node) {
79798
79802
  const leftTarget = skipOuterExpressions(node.left, 63 /* All */);
@@ -79805,21 +79809,6 @@ function createTypeChecker(host) {
79805
79809
  }
79806
79810
  }
79807
79811
  }
79808
- function checkNullishCoalesceOperandRight(node) {
79809
- const rightTarget = skipOuterExpressions(node.right, 63 /* All */);
79810
- const nullishSemantics = getSyntacticNullishnessSemantics(rightTarget);
79811
- if (isNotWithinNullishCoalesceExpression(node)) {
79812
- return;
79813
- }
79814
- if (nullishSemantics === 1 /* Always */) {
79815
- error(rightTarget, Diagnostics.This_expression_is_always_nullish);
79816
- } else if (nullishSemantics === 2 /* Never */) {
79817
- error(rightTarget, Diagnostics.This_expression_is_never_nullish);
79818
- }
79819
- }
79820
- function isNotWithinNullishCoalesceExpression(node) {
79821
- return !isBinaryExpression(node.parent) || node.parent.operatorToken.kind !== 61 /* QuestionQuestionToken */;
79822
- }
79823
79812
  function getSyntacticNullishnessSemantics(node) {
79824
79813
  node = skipOuterExpressions(node);
79825
79814
  switch (node.kind) {
@@ -79835,15 +79824,16 @@ function createTypeChecker(host) {
79835
79824
  return 3 /* Sometimes */;
79836
79825
  case 227 /* BinaryExpression */:
79837
79826
  switch (node.operatorToken.kind) {
79838
- case 64 /* EqualsToken */:
79839
- case 61 /* QuestionQuestionToken */:
79840
- case 78 /* QuestionQuestionEqualsToken */:
79841
79827
  case 57 /* BarBarToken */:
79842
79828
  case 76 /* BarBarEqualsToken */:
79843
79829
  case 56 /* AmpersandAmpersandToken */:
79844
79830
  case 77 /* AmpersandAmpersandEqualsToken */:
79845
79831
  return 3 /* Sometimes */;
79832
+ // For these operator kinds, the right operand is effectively controlling
79846
79833
  case 28 /* CommaToken */:
79834
+ case 64 /* EqualsToken */:
79835
+ case 61 /* QuestionQuestionToken */:
79836
+ case 78 /* QuestionQuestionEqualsToken */:
79847
79837
  return getSyntacticNullishnessSemantics(node.right);
79848
79838
  }
79849
79839
  return 2 /* Never */;
@@ -81749,9 +81739,8 @@ function createTypeChecker(host) {
81749
81739
  }
81750
81740
  const objectType = type.objectType;
81751
81741
  const indexType = type.indexType;
81752
- const objectIndexType = isGenericMappedType(objectType) && getMappedTypeNameTypeKind(objectType) === 2 /* Remapping */ ? getIndexTypeForMappedType(objectType, 0 /* None */) : getIndexType(objectType, 0 /* None */);
81753
81742
  const hasNumberIndexInfo = !!getIndexInfoOfType(objectType, numberType);
81754
- if (everyType(indexType, (t) => isTypeAssignableTo(t, objectIndexType) || hasNumberIndexInfo && isApplicableIndexType(t, numberType))) {
81743
+ if (everyType(indexType, (t) => isTypeAssignableTo(t, getIndexType(objectType, 0 /* None */)) || hasNumberIndexInfo && isApplicableIndexType(t, numberType))) {
81755
81744
  if (accessNode.kind === 213 /* ElementAccessExpression */ && isAssignmentTarget(accessNode) && getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) {
81756
81745
  error(accessNode, Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType));
81757
81746
  }
@@ -86616,8 +86605,8 @@ function createTypeChecker(host) {
86616
86605
  }
86617
86606
  (reportedUnreachableNodes ?? (reportedUnreachableNodes = /* @__PURE__ */ new Set())).add(node);
86618
86607
  const sourceFile = getSourceFileOfNode(node);
86619
- let start = node.pos;
86620
- let end = node.end;
86608
+ let startNode = node;
86609
+ let endNode = node;
86621
86610
  const parent = node.parent;
86622
86611
  if (canHaveStatements(parent)) {
86623
86612
  const statements = parent.statements;
@@ -86641,12 +86630,12 @@ function createTypeChecker(host) {
86641
86630
  last2 = i;
86642
86631
  reportedUnreachableNodes.add(nextNode);
86643
86632
  }
86644
- start = statements[first2].pos;
86645
- end = statements[last2].end;
86633
+ startNode = statements[first2];
86634
+ endNode = statements[last2];
86646
86635
  }
86647
86636
  }
86648
- start = skipTrivia(sourceFile.text, start);
86649
- addErrorOrSuggestion(compilerOptions.allowUnreachableCode === false, createFileDiagnostic(sourceFile, start, end - start, Diagnostics.Unreachable_code_detected));
86637
+ const start = getTokenPosOfNode(startNode, sourceFile);
86638
+ addErrorOrSuggestion(compilerOptions.allowUnreachableCode === false, createFileDiagnostic(sourceFile, start, endNode.end - start, Diagnostics.Unreachable_code_detected));
86650
86639
  return true;
86651
86640
  }
86652
86641
  function isSourceElementUnreachable(node) {
@@ -94084,6 +94073,9 @@ function transformTypeScript(context) {
94084
94073
  const parametersWithPropertyAssignments = constructor && filter(constructor.parameters, (p) => isParameterPropertyDeclaration(p, constructor));
94085
94074
  if (parametersWithPropertyAssignments) {
94086
94075
  for (const parameter of parametersWithPropertyAssignments) {
94076
+ if (!isIdentifier(parameter.name)) {
94077
+ continue;
94078
+ }
94087
94079
  const parameterProperty = factory2.createPropertyDeclaration(
94088
94080
  /*modifiers*/
94089
94081
  void 0,
@@ -115970,7 +115962,7 @@ function getCommonSourceDirectory(options, emittedFiles, currentDirectory, getCa
115970
115962
  if (options.rootDir) {
115971
115963
  commonSourceDirectory = getNormalizedAbsolutePath(options.rootDir, currentDirectory);
115972
115964
  checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(options.rootDir);
115973
- } else if (options.composite && options.configFilePath) {
115965
+ } else if (options.configFilePath) {
115974
115966
  commonSourceDirectory = getDirectoryPath(normalizeSlashes(options.configFilePath));
115975
115967
  checkSourceFilesBelongToPath == null ? void 0 : checkSourceFilesBelongToPath(commonSourceDirectory);
115976
115968
  } else {
@@ -115981,6 +115973,13 @@ function getCommonSourceDirectory(options, emittedFiles, currentDirectory, getCa
115981
115973
  }
115982
115974
  return commonSourceDirectory;
115983
115975
  }
115976
+ function getComputedCommonSourceDirectory(emittedFiles, currentDirectory, getCanonicalFileName) {
115977
+ let commonSourceDirectory = computeCommonSourceDirectoryOfFilenames(emittedFiles, currentDirectory, getCanonicalFileName);
115978
+ if (commonSourceDirectory && commonSourceDirectory[commonSourceDirectory.length - 1] !== directorySeparator) {
115979
+ commonSourceDirectory += directorySeparator;
115980
+ }
115981
+ return commonSourceDirectory;
115982
+ }
115984
115983
  function getCommonSourceDirectoryOfConfig({ options, fileNames }, ignoreCase) {
115985
115984
  return getCommonSourceDirectory(
115986
115985
  options,
@@ -124413,6 +124412,31 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
124413
124412
  createDiagnosticForOptionName(Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, "outDir");
124414
124413
  }
124415
124414
  }
124415
+ if (!options.noEmit && !options.composite && !options.rootDir && options.configFilePath && (options.outDir || // there is --outDir specified
124416
+ getEmitDeclarations(options) && options.declarationDir || // there is --declarationDir specified
124417
+ options.outFile)) {
124418
+ const dir = getCommonSourceDirectory2();
124419
+ const emittedFiles = mapDefined(files, (file) => !file.isDeclarationFile && sourceFileMayBeEmitted(file, program) ? file.fileName : void 0);
124420
+ const dir59 = getComputedCommonSourceDirectory(emittedFiles, currentDirectory, getCanonicalFileName);
124421
+ if (dir59 !== "" && getCanonicalFileName(dir) !== getCanonicalFileName(dir59)) {
124422
+ createDiagnosticForOption(
124423
+ /*onKey*/
124424
+ true,
124425
+ options.outFile ? "outFile" : options.outDir ? "outDir" : "declarationDir",
124426
+ !options.outFile && options.outDir ? "declarationDir" : void 0,
124427
+ chainDiagnosticMessages(
124428
+ chainDiagnosticMessages(
124429
+ /*details*/
124430
+ void 0,
124431
+ Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
124432
+ ),
124433
+ Diagnostics.The_common_source_directory_of_0_is_1_The_rootDir_setting_must_be_explicitly_set_to_this_or_another_path_to_adjust_your_output_s_file_layout,
124434
+ getBaseFileName(options.configFilePath),
124435
+ getRelativePathFromFile(options.configFilePath, dir59, getCanonicalFileName)
124436
+ )
124437
+ );
124438
+ }
124439
+ }
124416
124440
  if (options.checkJs && !getAllowJSCompilerOption(options)) {
124417
124441
  createDiagnosticForOptionName(Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "checkJs", "allowJs");
124418
124442
  }
@@ -124621,12 +124645,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
124621
124645
  createDeprecatedDiagnostic("charset");
124622
124646
  }
124623
124647
  if (options.out) {
124624
- createDeprecatedDiagnostic(
124625
- "out",
124626
- /*value*/
124627
- void 0,
124628
- "outFile"
124629
- );
124648
+ createDeprecatedDiagnostic("out");
124630
124649
  }
124631
124650
  if (options.importsNotUsedAsValues) {
124632
124651
  createDeprecatedDiagnostic(
@@ -124646,6 +124665,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
124646
124665
  }
124647
124666
  });
124648
124667
  checkDeprecations("6.0", "7.0", createDiagnostic, (createDeprecatedDiagnostic) => {
124668
+ if (options.target === 1 /* ES5 */) {
124669
+ createDeprecatedDiagnostic("target", "ES5");
124670
+ }
124649
124671
  if (options.moduleResolution === 2 /* Node10 */) {
124650
124672
  createDeprecatedDiagnostic(
124651
124673
  "moduleResolution",
@@ -124695,6 +124717,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
124695
124717
  void 0
124696
124718
  );
124697
124719
  }
124720
+ if (options.outFile) {
124721
+ createDeprecatedDiagnostic("outFile");
124722
+ }
124698
124723
  if (options.module === 0 /* None */ || options.module === 2 /* AMD */ || options.module === 3 /* UMD */ || options.module === 4 /* System */) {
124699
124724
  createDeprecatedDiagnostic(
124700
124725
  "module",
@@ -127838,7 +127863,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
127838
127863
  shouldRetryResolution,
127839
127864
  logChanges
127840
127865
  }) {
127841
- var _a;
127866
+ var _a, _b;
127842
127867
  const path = resolutionHost.toPath(containingFile);
127843
127868
  const resolutionsInFile = perFileCache.get(path) || perFileCache.set(path, createModeAwareCache()).get(path);
127844
127869
  const resolvedModules = [];
@@ -127859,7 +127884,7 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
127859
127884
  resolutionHost.onDiscoveredSymlink();
127860
127885
  }
127861
127886
  resolutionsInFile.set(name, mode, resolution);
127862
- if (resolution !== existingResolution) {
127887
+ if (resolution !== existingResolution && !((_b = resolutionHost.skipWatchingFailedLookups) == null ? void 0 : _b.call(resolutionHost, path))) {
127863
127888
  watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName, deferWatchingNonRelativeResolution);
127864
127889
  if (existingResolution) {
127865
127890
  stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName);
@@ -127896,8 +127921,11 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
127896
127921
  );
127897
127922
  if (resolutionsInFile.size() !== seenNamesInFile.size()) {
127898
127923
  resolutionsInFile.forEach((resolution, name, mode) => {
127924
+ var _a2;
127899
127925
  if (!seenNamesInFile.has(name, mode)) {
127900
- stopWatchFailedLookupLocationOfResolution(resolution, path, getResolutionWithResolvedFileName);
127926
+ if (!((_a2 = resolutionHost.skipWatchingFailedLookups) == null ? void 0 : _a2.call(resolutionHost, path))) {
127927
+ stopWatchFailedLookupLocationOfResolution(resolution, path, getResolutionWithResolvedFileName);
127928
+ }
127901
127929
  resolutionsInFile.delete(name, mode);
127902
127930
  }
127903
127931
  });
@@ -128311,15 +128339,18 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
128311
128339
  }, nonRecursive ? 0 /* None */ : 1 /* Recursive */);
128312
128340
  }
128313
128341
  function removeResolutionsOfFileFromCache(cache, filePath, getResolutionWithResolvedFileName) {
128342
+ var _a;
128314
128343
  const resolutions = cache.get(filePath);
128315
128344
  if (resolutions) {
128316
- resolutions.forEach(
128317
- (resolution) => stopWatchFailedLookupLocationOfResolution(
128318
- resolution,
128319
- filePath,
128320
- getResolutionWithResolvedFileName
128321
- )
128322
- );
128345
+ if (!((_a = resolutionHost.skipWatchingFailedLookups) == null ? void 0 : _a.call(resolutionHost, filePath))) {
128346
+ resolutions.forEach(
128347
+ (resolution) => stopWatchFailedLookupLocationOfResolution(
128348
+ resolution,
128349
+ filePath,
128350
+ getResolutionWithResolvedFileName
128351
+ )
128352
+ );
128353
+ }
128323
128354
  cache.delete(filePath);
128324
128355
  }
128325
128356
  }
@@ -128474,11 +128505,16 @@ function createResolutionCache(resolutionHost, rootDirForResolution, logChangesW
128474
128505
  }, 1 /* Recursive */) : noopFileWatcher;
128475
128506
  }
128476
128507
  function updateTypeRootsWatch() {
128508
+ var _a;
128477
128509
  const options = resolutionHost.getCompilationSettings();
128478
128510
  if (options.types) {
128479
128511
  closeTypeRootsWatch();
128480
128512
  return;
128481
128513
  }
128514
+ if (!isRootWatchable || ((_a = resolutionHost.skipWatchingTypeRoots) == null ? void 0 : _a.call(resolutionHost))) {
128515
+ closeTypeRootsWatch();
128516
+ return;
128517
+ }
128482
128518
  const typeRoots = getEffectiveTypeRoots(options, { getCurrentDirectory });
128483
128519
  if (typeRoots) {
128484
128520
  mutateMap(
@@ -131640,7 +131676,13 @@ function updateReportDiagnostic(sys2, existing, options) {
131640
131676
  ) : existing;
131641
131677
  }
131642
131678
  function defaultIsPretty(sys2) {
131643
- return !!sys2.writeOutputIsTTY && sys2.writeOutputIsTTY() && !sys2.getEnvironmentVariable("NO_COLOR");
131679
+ if (sys2.getEnvironmentVariable("NO_COLOR")) {
131680
+ return false;
131681
+ }
131682
+ if (sys2.getEnvironmentVariable("FORCE_COLOR")) {
131683
+ return true;
131684
+ }
131685
+ return !!sys2.writeOutputIsTTY && sys2.writeOutputIsTTY();
131644
131686
  }
131645
131687
  function shouldBePretty(sys2, options) {
131646
131688
  if (!options || typeof options.pretty === "undefined") {
package/lib/_tsserver.js CHANGED
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
package/lib/lib.d.ts CHANGED
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
package/lib/lib.dom.d.ts CHANGED
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
7
7
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
8
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
9
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ MERCHANTABILITY OR NON-INFRINGEMENT.
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
@@ -189,7 +189,7 @@ interface Math {
189
189
  hypot(...values: number[]): number;
190
190
 
191
191
  /**
192
- * Returns the integral part of the a numeric expression, x, removing any fractional digits.
192
+ * Returns the integral part of the numeric expression x, removing any fractional digits.
193
193
  * If x is already an integer, the result is x.
194
194
  * @param x A numeric expression.
195
195
  */