@typescript-deploys/pr-build 6.0.0-pr-62661-13 → 6.0.0-pr-62669-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/_tsc.js CHANGED
@@ -7537,13 +7537,12 @@ var Diagnostics = {
7537
7537
  one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
7538
7538
  type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
7539
7539
  default_Colon: diag(6903, 3 /* Message */, "default_Colon_6903", "default:"),
7540
- module_system_or_esModuleInterop: diag(6904, 3 /* Message */, "module_system_or_esModuleInterop_6904", 'module === "system" or esModuleInterop'),
7541
7540
  false_unless_strict_is_set: diag(6905, 3 /* Message */, "false_unless_strict_is_set_6905", "`false`, unless `strict` is set"),
7542
7541
  false_unless_composite_is_set: diag(6906, 3 /* Message */, "false_unless_composite_is_set_6906", "`false`, unless `composite` is set"),
7543
7542
  node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified: diag(6907, 3 /* Message */, "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907", '`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),
7544
7543
  if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk: diag(6908, 3 /* Message */, "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908", '`[]` if `files` is specified, otherwise `["**/*"]`'),
7545
7544
  true_if_composite_false_otherwise: diag(6909, 3 /* Message */, "true_if_composite_false_otherwise_6909", "`true` if `composite`, `false` otherwise"),
7546
- module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node: diag(69010, 3 /* Message */, "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010", "module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),
7545
+ nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler: diag(69010, 3 /* Message */, "nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler_69010", "`nodenext` if `module` is `nodenext`; `node16` if `module` is `node16` or `node18`; otherwise, `bundler`."),
7547
7546
  Computed_from_the_list_of_input_files: diag(6911, 3 /* Message */, "Computed_from_the_list_of_input_files_6911", "Computed from the list of input files"),
7548
7547
  Platform_specific: diag(6912, 3 /* Message */, "Platform_specific_6912", "Platform specific"),
7549
7548
  You_can_learn_about_all_of_the_compiler_options_at_0: diag(6913, 3 /* Message */, "You_can_learn_about_all_of_the_compiler_options_at_0_6913", "You can learn about all of the compiler options at {0}"),
@@ -17997,27 +17996,23 @@ var _computedOptions = createComputedCompilerOptions({
17997
17996
  moduleResolution: {
17998
17997
  dependencies: ["module", "target"],
17999
17998
  computeValue: (compilerOptions) => {
18000
- let moduleResolution = compilerOptions.moduleResolution;
18001
- if (moduleResolution === void 0) {
18002
- switch (_computedOptions.module.computeValue(compilerOptions)) {
18003
- case 100 /* Node16 */:
18004
- case 101 /* Node18 */:
18005
- case 102 /* Node20 */:
18006
- moduleResolution = 3 /* Node16 */;
18007
- break;
18008
- case 199 /* NodeNext */:
18009
- moduleResolution = 99 /* NodeNext */;
18010
- break;
18011
- case 1 /* CommonJS */:
18012
- case 200 /* Preserve */:
18013
- moduleResolution = 100 /* Bundler */;
18014
- break;
18015
- default:
18016
- moduleResolution = 1 /* Classic */;
18017
- break;
18018
- }
17999
+ if (compilerOptions.moduleResolution !== void 0) {
18000
+ return compilerOptions.moduleResolution;
18001
+ }
18002
+ const moduleKind = _computedOptions.module.computeValue(compilerOptions);
18003
+ switch (moduleKind) {
18004
+ case 0 /* None */:
18005
+ case 2 /* AMD */:
18006
+ case 3 /* UMD */:
18007
+ case 4 /* System */:
18008
+ return 1 /* Classic */;
18009
+ case 199 /* NodeNext */:
18010
+ return 99 /* NodeNext */;
18019
18011
  }
18020
- return moduleResolution;
18012
+ if (100 /* Node16 */ <= moduleKind && moduleKind < 199 /* NodeNext */) {
18013
+ return 3 /* Node16 */;
18014
+ }
18015
+ return 100 /* Bundler */;
18021
18016
  }
18022
18017
  },
18023
18018
  moduleDetection: {
@@ -18055,7 +18050,7 @@ var _computedOptions = createComputedCompilerOptions({
18055
18050
  }
18056
18051
  },
18057
18052
  resolvePackageJsonExports: {
18058
- dependencies: ["moduleResolution"],
18053
+ dependencies: ["moduleResolution", "module", "target"],
18059
18054
  computeValue: (compilerOptions) => {
18060
18055
  const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
18061
18056
  if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
@@ -18074,7 +18069,7 @@ var _computedOptions = createComputedCompilerOptions({
18074
18069
  }
18075
18070
  },
18076
18071
  resolvePackageJsonImports: {
18077
- dependencies: ["moduleResolution", "resolvePackageJsonExports"],
18072
+ dependencies: ["moduleResolution", "resolvePackageJsonExports", "module", "target"],
18078
18073
  computeValue: (compilerOptions) => {
18079
18074
  const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
18080
18075
  if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
@@ -36812,6 +36807,7 @@ var moduleOptionDeclaration = {
36812
36807
  nodenext: 199 /* NodeNext */,
36813
36808
  preserve: 200 /* Preserve */
36814
36809
  })),
36810
+ deprecatedKeys: /* @__PURE__ */ new Set(["none", "amd", "system", "umd"]),
36815
36811
  affectsSourceFile: true,
36816
36812
  affectsModuleResolution: true,
36817
36813
  affectsEmit: true,
@@ -37270,13 +37266,13 @@ var commandOptionsWithoutBuild = [
37270
37266
  nodenext: 99 /* NodeNext */,
37271
37267
  bundler: 100 /* Bundler */
37272
37268
  })),
37273
- deprecatedKeys: /* @__PURE__ */ new Set(["node"]),
37269
+ deprecatedKeys: /* @__PURE__ */ new Set(["node", "node10", "classic"]),
37274
37270
  affectsSourceFile: true,
37275
37271
  affectsModuleResolution: true,
37276
37272
  paramType: Diagnostics.STRATEGY,
37277
37273
  category: Diagnostics.Modules,
37278
37274
  description: Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,
37279
- defaultValueDescription: Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node
37275
+ defaultValueDescription: Diagnostics.nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler
37280
37276
  },
37281
37277
  {
37282
37278
  name: "baseUrl",
@@ -83956,19 +83952,18 @@ function createTypeChecker(host) {
83956
83952
  }
83957
83953
  function getIterationTypesOfIterable(type, use, errorNode) {
83958
83954
  var _a, _b;
83959
- const reducedType = getReducedType(type);
83960
- if (reducedType === silentNeverType) {
83955
+ if (type === silentNeverType) {
83961
83956
  return silentNeverIterationTypes;
83962
83957
  }
83963
- if (isTypeAny(reducedType)) {
83958
+ if (isTypeAny(type)) {
83964
83959
  return anyIterationTypes;
83965
83960
  }
83966
- if (!(reducedType.flags & 1048576 /* Union */)) {
83961
+ if (!(type.flags & 1048576 /* Union */)) {
83967
83962
  const errorOutputContainer = errorNode ? { errors: void 0, skipLogging: true } : void 0;
83968
- const iterationTypes2 = getIterationTypesOfIterableWorker(reducedType, use, errorNode, errorOutputContainer);
83963
+ const iterationTypes2 = getIterationTypesOfIterableWorker(type, use, errorNode, errorOutputContainer);
83969
83964
  if (iterationTypes2 === noIterationTypes) {
83970
83965
  if (errorNode) {
83971
- const rootDiag = reportTypeNotIterableError(errorNode, reducedType, !!(use & 2 /* AllowsAsyncIterablesFlag */));
83966
+ const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */));
83972
83967
  if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
83973
83968
  addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
83974
83969
  }
@@ -83982,20 +83977,20 @@ function createTypeChecker(host) {
83982
83977
  return iterationTypes2;
83983
83978
  }
83984
83979
  const cacheKey = use & 2 /* AllowsAsyncIterablesFlag */ ? "iterationTypesOfAsyncIterable" : "iterationTypesOfIterable";
83985
- const cachedTypes2 = getCachedIterationTypes(reducedType, cacheKey);
83980
+ const cachedTypes2 = getCachedIterationTypes(type, cacheKey);
83986
83981
  if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;
83987
83982
  let allIterationTypes;
83988
- for (const constituent of reducedType.types) {
83983
+ for (const constituent of type.types) {
83989
83984
  const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;
83990
83985
  const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);
83991
83986
  if (iterationTypes2 === noIterationTypes) {
83992
83987
  if (errorNode) {
83993
- const rootDiag = reportTypeNotIterableError(errorNode, reducedType, !!(use & 2 /* AllowsAsyncIterablesFlag */));
83988
+ const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */));
83994
83989
  if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
83995
83990
  addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
83996
83991
  }
83997
83992
  }
83998
- setCachedIterationTypes(reducedType, cacheKey, noIterationTypes);
83993
+ setCachedIterationTypes(type, cacheKey, noIterationTypes);
83999
83994
  return void 0;
84000
83995
  } else if ((_b = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _b.length) {
84001
83996
  for (const diag2 of errorOutputContainer.errors) {
@@ -84005,7 +84000,7 @@ function createTypeChecker(host) {
84005
84000
  allIterationTypes = append(allIterationTypes, iterationTypes2);
84006
84001
  }
84007
84002
  const iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes;
84008
- setCachedIterationTypes(reducedType, cacheKey, iterationTypes);
84003
+ setCachedIterationTypes(type, cacheKey, iterationTypes);
84009
84004
  return iterationTypes === noIterationTypes ? void 0 : iterationTypes;
84010
84005
  }
84011
84006
  function getAsyncFromSyncIterationTypes(iterationTypes, errorNode) {
@@ -124707,6 +124702,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
124707
124702
  Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
124708
124703
  );
124709
124704
  }
124705
+ if (options.moduleResolution === 1 /* Classic */) {
124706
+ createDeprecatedDiagnostic(
124707
+ "moduleResolution",
124708
+ "classic",
124709
+ /*useInstead*/
124710
+ void 0,
124711
+ /*related*/
124712
+ void 0
124713
+ );
124714
+ }
124710
124715
  if (options.baseUrl !== void 0) {
124711
124716
  createDeprecatedDiagnostic(
124712
124717
  "baseUrl",
@@ -124737,6 +124742,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
124737
124742
  void 0
124738
124743
  );
124739
124744
  }
124745
+ if (options.module === 0 /* None */ || options.module === 2 /* AMD */ || options.module === 3 /* UMD */ || options.module === 4 /* System */) {
124746
+ createDeprecatedDiagnostic(
124747
+ "module",
124748
+ ModuleKind[options.module],
124749
+ /*useInstead*/
124750
+ void 0,
124751
+ /*related*/
124752
+ void 0
124753
+ );
124754
+ }
124740
124755
  });
124741
124756
  }
124742
124757
  function verifyDeprecatedProjectReference(ref, parentFile, index) {
@@ -6944,6 +6944,7 @@ declare namespace ts {
6944
6944
  Message = 3,
6945
6945
  }
6946
6946
  enum ModuleResolutionKind {
6947
+ /** @deprecated */
6947
6948
  Classic = 1,
6948
6949
  /**
6949
6950
  * @deprecated
@@ -7147,10 +7148,14 @@ declare namespace ts {
7147
7148
  [option: string]: CompilerOptionsValue | undefined;
7148
7149
  }
7149
7150
  enum ModuleKind {
7151
+ /** @deprecated */
7150
7152
  None = 0,
7151
7153
  CommonJS = 1,
7154
+ /** @deprecated */
7152
7155
  AMD = 2,
7156
+ /** @deprecated */
7153
7157
  UMD = 3,
7158
+ /** @deprecated */
7154
7159
  System = 4,
7155
7160
  ES2015 = 5,
7156
7161
  ES2020 = 6,
package/lib/typescript.js CHANGED
@@ -10924,13 +10924,12 @@ var Diagnostics = {
10924
10924
  one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
10925
10925
  type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
10926
10926
  default_Colon: diag(6903, 3 /* Message */, "default_Colon_6903", "default:"),
10927
- module_system_or_esModuleInterop: diag(6904, 3 /* Message */, "module_system_or_esModuleInterop_6904", 'module === "system" or esModuleInterop'),
10928
10927
  false_unless_strict_is_set: diag(6905, 3 /* Message */, "false_unless_strict_is_set_6905", "`false`, unless `strict` is set"),
10929
10928
  false_unless_composite_is_set: diag(6906, 3 /* Message */, "false_unless_composite_is_set_6906", "`false`, unless `composite` is set"),
10930
10929
  node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified: diag(6907, 3 /* Message */, "node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907", '`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),
10931
10930
  if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk: diag(6908, 3 /* Message */, "if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908", '`[]` if `files` is specified, otherwise `["**/*"]`'),
10932
10931
  true_if_composite_false_otherwise: diag(6909, 3 /* Message */, "true_if_composite_false_otherwise_6909", "`true` if `composite`, `false` otherwise"),
10933
- module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node: diag(69010, 3 /* Message */, "module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010", "module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),
10932
+ nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler: diag(69010, 3 /* Message */, "nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler_69010", "`nodenext` if `module` is `nodenext`; `node16` if `module` is `node16` or `node18`; otherwise, `bundler`."),
10934
10933
  Computed_from_the_list_of_input_files: diag(6911, 3 /* Message */, "Computed_from_the_list_of_input_files_6911", "Computed from the list of input files"),
10935
10934
  Platform_specific: diag(6912, 3 /* Message */, "Platform_specific_6912", "Platform specific"),
10936
10935
  You_can_learn_about_all_of_the_compiler_options_at_0: diag(6913, 3 /* Message */, "You_can_learn_about_all_of_the_compiler_options_at_0_6913", "You can learn about all of the compiler options at {0}"),
@@ -21950,27 +21949,23 @@ var _computedOptions = createComputedCompilerOptions({
21950
21949
  moduleResolution: {
21951
21950
  dependencies: ["module", "target"],
21952
21951
  computeValue: (compilerOptions) => {
21953
- let moduleResolution = compilerOptions.moduleResolution;
21954
- if (moduleResolution === void 0) {
21955
- switch (_computedOptions.module.computeValue(compilerOptions)) {
21956
- case 100 /* Node16 */:
21957
- case 101 /* Node18 */:
21958
- case 102 /* Node20 */:
21959
- moduleResolution = 3 /* Node16 */;
21960
- break;
21961
- case 199 /* NodeNext */:
21962
- moduleResolution = 99 /* NodeNext */;
21963
- break;
21964
- case 1 /* CommonJS */:
21965
- case 200 /* Preserve */:
21966
- moduleResolution = 100 /* Bundler */;
21967
- break;
21968
- default:
21969
- moduleResolution = 1 /* Classic */;
21970
- break;
21971
- }
21952
+ if (compilerOptions.moduleResolution !== void 0) {
21953
+ return compilerOptions.moduleResolution;
21954
+ }
21955
+ const moduleKind = _computedOptions.module.computeValue(compilerOptions);
21956
+ switch (moduleKind) {
21957
+ case 0 /* None */:
21958
+ case 2 /* AMD */:
21959
+ case 3 /* UMD */:
21960
+ case 4 /* System */:
21961
+ return 1 /* Classic */;
21962
+ case 199 /* NodeNext */:
21963
+ return 99 /* NodeNext */;
21964
+ }
21965
+ if (100 /* Node16 */ <= moduleKind && moduleKind < 199 /* NodeNext */) {
21966
+ return 3 /* Node16 */;
21972
21967
  }
21973
- return moduleResolution;
21968
+ return 100 /* Bundler */;
21974
21969
  }
21975
21970
  },
21976
21971
  moduleDetection: {
@@ -22008,7 +22003,7 @@ var _computedOptions = createComputedCompilerOptions({
22008
22003
  }
22009
22004
  },
22010
22005
  resolvePackageJsonExports: {
22011
- dependencies: ["moduleResolution"],
22006
+ dependencies: ["moduleResolution", "module", "target"],
22012
22007
  computeValue: (compilerOptions) => {
22013
22008
  const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
22014
22009
  if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
@@ -22027,7 +22022,7 @@ var _computedOptions = createComputedCompilerOptions({
22027
22022
  }
22028
22023
  },
22029
22024
  resolvePackageJsonImports: {
22030
- dependencies: ["moduleResolution", "resolvePackageJsonExports"],
22025
+ dependencies: ["moduleResolution", "resolvePackageJsonExports", "module", "target"],
22031
22026
  computeValue: (compilerOptions) => {
22032
22027
  const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
22033
22028
  if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
@@ -41068,6 +41063,7 @@ var moduleOptionDeclaration = {
41068
41063
  nodenext: 199 /* NodeNext */,
41069
41064
  preserve: 200 /* Preserve */
41070
41065
  })),
41066
+ deprecatedKeys: /* @__PURE__ */ new Set(["none", "amd", "system", "umd"]),
41071
41067
  affectsSourceFile: true,
41072
41068
  affectsModuleResolution: true,
41073
41069
  affectsEmit: true,
@@ -41526,13 +41522,13 @@ var commandOptionsWithoutBuild = [
41526
41522
  nodenext: 99 /* NodeNext */,
41527
41523
  bundler: 100 /* Bundler */
41528
41524
  })),
41529
- deprecatedKeys: /* @__PURE__ */ new Set(["node"]),
41525
+ deprecatedKeys: /* @__PURE__ */ new Set(["node", "node10", "classic"]),
41530
41526
  affectsSourceFile: true,
41531
41527
  affectsModuleResolution: true,
41532
41528
  paramType: Diagnostics.STRATEGY,
41533
41529
  category: Diagnostics.Modules,
41534
41530
  description: Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,
41535
- defaultValueDescription: Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node
41531
+ defaultValueDescription: Diagnostics.nodenext_if_module_is_nodenext_node16_if_module_is_node16_or_node18_otherwise_bundler
41536
41532
  },
41537
41533
  {
41538
41534
  name: "baseUrl",
@@ -88562,19 +88558,18 @@ function createTypeChecker(host) {
88562
88558
  }
88563
88559
  function getIterationTypesOfIterable(type, use, errorNode) {
88564
88560
  var _a, _b;
88565
- const reducedType = getReducedType(type);
88566
- if (reducedType === silentNeverType) {
88561
+ if (type === silentNeverType) {
88567
88562
  return silentNeverIterationTypes;
88568
88563
  }
88569
- if (isTypeAny(reducedType)) {
88564
+ if (isTypeAny(type)) {
88570
88565
  return anyIterationTypes;
88571
88566
  }
88572
- if (!(reducedType.flags & 1048576 /* Union */)) {
88567
+ if (!(type.flags & 1048576 /* Union */)) {
88573
88568
  const errorOutputContainer = errorNode ? { errors: void 0, skipLogging: true } : void 0;
88574
- const iterationTypes2 = getIterationTypesOfIterableWorker(reducedType, use, errorNode, errorOutputContainer);
88569
+ const iterationTypes2 = getIterationTypesOfIterableWorker(type, use, errorNode, errorOutputContainer);
88575
88570
  if (iterationTypes2 === noIterationTypes) {
88576
88571
  if (errorNode) {
88577
- const rootDiag = reportTypeNotIterableError(errorNode, reducedType, !!(use & 2 /* AllowsAsyncIterablesFlag */));
88572
+ const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */));
88578
88573
  if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
88579
88574
  addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
88580
88575
  }
@@ -88588,20 +88583,20 @@ function createTypeChecker(host) {
88588
88583
  return iterationTypes2;
88589
88584
  }
88590
88585
  const cacheKey = use & 2 /* AllowsAsyncIterablesFlag */ ? "iterationTypesOfAsyncIterable" : "iterationTypesOfIterable";
88591
- const cachedTypes2 = getCachedIterationTypes(reducedType, cacheKey);
88586
+ const cachedTypes2 = getCachedIterationTypes(type, cacheKey);
88592
88587
  if (cachedTypes2) return cachedTypes2 === noIterationTypes ? void 0 : cachedTypes2;
88593
88588
  let allIterationTypes;
88594
- for (const constituent of reducedType.types) {
88589
+ for (const constituent of type.types) {
88595
88590
  const errorOutputContainer = errorNode ? { errors: void 0 } : void 0;
88596
88591
  const iterationTypes2 = getIterationTypesOfIterableWorker(constituent, use, errorNode, errorOutputContainer);
88597
88592
  if (iterationTypes2 === noIterationTypes) {
88598
88593
  if (errorNode) {
88599
- const rootDiag = reportTypeNotIterableError(errorNode, reducedType, !!(use & 2 /* AllowsAsyncIterablesFlag */));
88594
+ const rootDiag = reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */));
88600
88595
  if (errorOutputContainer == null ? void 0 : errorOutputContainer.errors) {
88601
88596
  addRelatedInfo(rootDiag, ...errorOutputContainer.errors);
88602
88597
  }
88603
88598
  }
88604
- setCachedIterationTypes(reducedType, cacheKey, noIterationTypes);
88599
+ setCachedIterationTypes(type, cacheKey, noIterationTypes);
88605
88600
  return void 0;
88606
88601
  } else if ((_b = errorOutputContainer == null ? void 0 : errorOutputContainer.errors) == null ? void 0 : _b.length) {
88607
88602
  for (const diag2 of errorOutputContainer.errors) {
@@ -88611,7 +88606,7 @@ function createTypeChecker(host) {
88611
88606
  allIterationTypes = append(allIterationTypes, iterationTypes2);
88612
88607
  }
88613
88608
  const iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes;
88614
- setCachedIterationTypes(reducedType, cacheKey, iterationTypes);
88609
+ setCachedIterationTypes(type, cacheKey, iterationTypes);
88615
88610
  return iterationTypes === noIterationTypes ? void 0 : iterationTypes;
88616
88611
  }
88617
88612
  function getAsyncFromSyncIterationTypes(iterationTypes, errorNode) {
@@ -129552,6 +129547,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
129552
129547
  Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashts6_for_migration_information
129553
129548
  );
129554
129549
  }
129550
+ if (options.moduleResolution === 1 /* Classic */) {
129551
+ createDeprecatedDiagnostic(
129552
+ "moduleResolution",
129553
+ "classic",
129554
+ /*useInstead*/
129555
+ void 0,
129556
+ /*related*/
129557
+ void 0
129558
+ );
129559
+ }
129555
129560
  if (options.baseUrl !== void 0) {
129556
129561
  createDeprecatedDiagnostic(
129557
129562
  "baseUrl",
@@ -129582,6 +129587,16 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
129582
129587
  void 0
129583
129588
  );
129584
129589
  }
129590
+ if (options.module === 0 /* None */ || options.module === 2 /* AMD */ || options.module === 3 /* UMD */ || options.module === 4 /* System */) {
129591
+ createDeprecatedDiagnostic(
129592
+ "module",
129593
+ ModuleKind[options.module],
129594
+ /*useInstead*/
129595
+ void 0,
129596
+ /*related*/
129597
+ void 0
129598
+ );
129599
+ }
129585
129600
  });
129586
129601
  }
129587
129602
  function verifyDeprecatedProjectReference(ref, parentFile, index) {
@@ -166892,7 +166907,7 @@ var SymbolOriginInfoKind = /* @__PURE__ */ ((SymbolOriginInfoKind2) => {
166892
166907
  SymbolOriginInfoKind2[SymbolOriginInfoKind2["Ignore"] = 256] = "Ignore";
166893
166908
  SymbolOriginInfoKind2[SymbolOriginInfoKind2["ComputedPropertyName"] = 512] = "ComputedPropertyName";
166894
166909
  SymbolOriginInfoKind2[SymbolOriginInfoKind2["SymbolMemberNoExport"] = 2 /* SymbolMember */] = "SymbolMemberNoExport";
166895
- SymbolOriginInfoKind2[SymbolOriginInfoKind2["SymbolMemberExport"] = 6] = "SymbolMemberExport";
166910
+ SymbolOriginInfoKind2[SymbolOriginInfoKind2["SymbolMemberExport"] = 34] = "SymbolMemberExport";
166896
166911
  return SymbolOriginInfoKind2;
166897
166912
  })(SymbolOriginInfoKind || {});
166898
166913
  function originIsThisType(origin) {
@@ -166905,7 +166920,7 @@ function originIsExport(origin) {
166905
166920
  return !!(origin && origin.kind & 4 /* Export */);
166906
166921
  }
166907
166922
  function originIsResolvedExport(origin) {
166908
- return !!(origin && origin.kind === 32 /* ResolvedExport */);
166923
+ return !!(origin && origin.kind & 32 /* ResolvedExport */);
166909
166924
  }
166910
166925
  function originIncludesSymbolName(origin) {
166911
166926
  return originIsExport(origin) || originIsResolvedExport(origin) || originIsComputedPropertyName(origin);
@@ -168482,12 +168497,12 @@ function isRecommendedCompletionMatch(localSymbol, recommendedCompletion, checke
168482
168497
  return localSymbol === recommendedCompletion || !!(localSymbol.flags & 1048576 /* ExportValue */) && checker.getExportSymbolOfSymbol(localSymbol) === recommendedCompletion;
168483
168498
  }
168484
168499
  function getSourceFromOrigin(origin) {
168485
- if (originIsExport(origin)) {
168486
- return stripQuotes(origin.moduleSymbol.name);
168487
- }
168488
168500
  if (originIsResolvedExport(origin)) {
168489
168501
  return origin.moduleSpecifier;
168490
168502
  }
168503
+ if (originIsExport(origin)) {
168504
+ return stripQuotes(origin.moduleSymbol.name);
168505
+ }
168491
168506
  if ((origin == null ? void 0 : origin.kind) === 1 /* ThisType */) {
168492
168507
  return "ThisProperty/" /* ThisProperty */;
168493
168508
  }
@@ -169371,7 +169386,7 @@ function getCompletionData(program, log, sourceFile, compilerOptions, position,
169371
169386
  ) || {};
169372
169387
  if (moduleSpecifier) {
169373
169388
  const origin = {
169374
- kind: getNullableSymbolOriginInfoKind(6 /* SymbolMemberExport */),
169389
+ kind: getNullableSymbolOriginInfoKind(34 /* SymbolMemberExport */),
169375
169390
  moduleSymbol,
169376
169391
  isDefaultExport: false,
169377
169392
  symbolName: firstAccessibleSymbol.name,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "6.0.0-pr-62661-13",
5
+ "version": "6.0.0-pr-62669-3",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [