typescript 5.7.0-dev.20240915 → 5.7.0-dev.20240917

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
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.7";
21
- var version = `${versionMajorMinor}.0-dev.20240915`;
21
+ var version = `${versionMajorMinor}.0-dev.20240917`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -3854,6 +3854,42 @@ var EmitFlags = /* @__PURE__ */ ((EmitFlags3) => {
3854
3854
  EmitFlags3[EmitFlags3["NoAsciiEscaping"] = 16777216] = "NoAsciiEscaping";
3855
3855
  return EmitFlags3;
3856
3856
  })(EmitFlags || {});
3857
+ var LanguageFeatureMinimumTarget = {
3858
+ Classes: 2 /* ES2015 */,
3859
+ ForOf: 2 /* ES2015 */,
3860
+ Generators: 2 /* ES2015 */,
3861
+ Iteration: 2 /* ES2015 */,
3862
+ SpreadElements: 2 /* ES2015 */,
3863
+ RestElements: 2 /* ES2015 */,
3864
+ TaggedTemplates: 2 /* ES2015 */,
3865
+ DestructuringAssignment: 2 /* ES2015 */,
3866
+ BindingPatterns: 2 /* ES2015 */,
3867
+ ArrowFunctions: 2 /* ES2015 */,
3868
+ BlockScopedVariables: 2 /* ES2015 */,
3869
+ ObjectAssign: 2 /* ES2015 */,
3870
+ RegularExpressionFlagsUnicode: 2 /* ES2015 */,
3871
+ RegularExpressionFlagsSticky: 2 /* ES2015 */,
3872
+ Exponentiation: 3 /* ES2016 */,
3873
+ AsyncFunctions: 4 /* ES2017 */,
3874
+ ForAwaitOf: 5 /* ES2018 */,
3875
+ AsyncGenerators: 5 /* ES2018 */,
3876
+ AsyncIteration: 5 /* ES2018 */,
3877
+ ObjectSpreadRest: 5 /* ES2018 */,
3878
+ RegularExpressionFlagsDotAll: 5 /* ES2018 */,
3879
+ BindinglessCatch: 6 /* ES2019 */,
3880
+ BigInt: 7 /* ES2020 */,
3881
+ NullishCoalesce: 7 /* ES2020 */,
3882
+ OptionalChaining: 7 /* ES2020 */,
3883
+ LogicalAssignment: 8 /* ES2021 */,
3884
+ TopLevelAwait: 9 /* ES2022 */,
3885
+ ClassFields: 9 /* ES2022 */,
3886
+ PrivateNamesAndClassStaticBlocks: 9 /* ES2022 */,
3887
+ RegularExpressionFlagsHasIndices: 9 /* ES2022 */,
3888
+ ShebangComments: 99 /* ESNext */,
3889
+ UsingAndAwaitUsing: 99 /* ESNext */,
3890
+ ClassAndClassElementDecorators: 99 /* ESNext */,
3891
+ RegularExpressionFlagsUnicodeSets: 99 /* ESNext */
3892
+ };
3857
3893
  var commentPragmas = {
3858
3894
  "reference": {
3859
3895
  args: [
@@ -8070,11 +8106,11 @@ var charCodeToRegExpFlag = /* @__PURE__ */ new Map([
8070
8106
  [121 /* y */, 128 /* Sticky */]
8071
8107
  ]);
8072
8108
  var regExpFlagToFirstAvailableLanguageVersion = /* @__PURE__ */ new Map([
8073
- [1 /* HasIndices */, 9 /* RegularExpressionFlagsHasIndices */],
8074
- [16 /* DotAll */, 5 /* RegularExpressionFlagsDotAll */],
8075
- [32 /* Unicode */, 2 /* RegularExpressionFlagsUnicode */],
8076
- [64 /* UnicodeSets */, 99 /* RegularExpressionFlagsUnicodeSets */],
8077
- [128 /* Sticky */, 2 /* RegularExpressionFlagsSticky */]
8109
+ [1 /* HasIndices */, LanguageFeatureMinimumTarget.RegularExpressionFlagsHasIndices],
8110
+ [16 /* DotAll */, LanguageFeatureMinimumTarget.RegularExpressionFlagsDotAll],
8111
+ [32 /* Unicode */, LanguageFeatureMinimumTarget.RegularExpressionFlagsUnicode],
8112
+ [64 /* UnicodeSets */, LanguageFeatureMinimumTarget.RegularExpressionFlagsUnicodeSets],
8113
+ [128 /* Sticky */, LanguageFeatureMinimumTarget.RegularExpressionFlagsSticky]
8078
8114
  ]);
8079
8115
  var unicodeES5IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2208, 2208, 2210, 2220, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2423, 2425, 2431, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3133, 3160, 3161, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3424, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6e3, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6263, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6428, 6480, 6509, 6512, 6516, 6528, 6571, 6593, 6599, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7401, 7404, 7406, 7409, 7413, 7414, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11823, 11823, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42647, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43648, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];
8080
8116
  var unicodeES5IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1520, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2048, 2093, 2112, 2139, 2208, 2208, 2210, 2220, 2276, 2302, 2304, 2403, 2406, 2415, 2417, 2423, 2425, 2431, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3161, 3168, 3171, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3396, 3398, 3400, 3402, 3406, 3415, 3415, 3424, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6e3, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6263, 6272, 6314, 6320, 6389, 6400, 6428, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6617, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7376, 7378, 7380, 7414, 7424, 7654, 7676, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8204, 8205, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 11823, 11823, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12442, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42647, 42655, 42737, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43047, 43072, 43123, 43136, 43204, 43216, 43225, 43232, 43255, 43259, 43259, 43264, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43643, 43648, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65062, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];
@@ -15006,17 +15042,15 @@ function isDefaultImport(node) {
15006
15042
  return (node.kind === 272 /* ImportDeclaration */ || node.kind === 351 /* JSDocImportTag */) && !!node.importClause && !!node.importClause.name;
15007
15043
  }
15008
15044
  function hasQuestionToken(node) {
15009
- if (node) {
15010
- switch (node.kind) {
15011
- case 169 /* Parameter */:
15012
- case 174 /* MethodDeclaration */:
15013
- case 173 /* MethodSignature */:
15014
- case 304 /* ShorthandPropertyAssignment */:
15015
- case 303 /* PropertyAssignment */:
15016
- case 172 /* PropertyDeclaration */:
15017
- case 171 /* PropertySignature */:
15018
- return node.questionToken !== void 0;
15019
- }
15045
+ switch (node.kind) {
15046
+ case 169 /* Parameter */:
15047
+ case 174 /* MethodDeclaration */:
15048
+ case 173 /* MethodSignature */:
15049
+ case 304 /* ShorthandPropertyAssignment */:
15050
+ case 303 /* PropertyAssignment */:
15051
+ case 172 /* PropertyDeclaration */:
15052
+ case 171 /* PropertySignature */:
15053
+ return node.questionToken !== void 0;
15020
15054
  }
15021
15055
  return false;
15022
15056
  }
@@ -17697,7 +17731,7 @@ function importSyntaxAffectsModuleResolution(options) {
17697
17731
  function createComputedCompilerOptions(options) {
17698
17732
  return options;
17699
17733
  }
17700
- var computedOptions = createComputedCompilerOptions({
17734
+ var _computedOptions = createComputedCompilerOptions({
17701
17735
  target: {
17702
17736
  dependencies: ["module"],
17703
17737
  computeValue: (compilerOptions) => {
@@ -17708,7 +17742,7 @@ var computedOptions = createComputedCompilerOptions({
17708
17742
  module: {
17709
17743
  dependencies: ["target"],
17710
17744
  computeValue: (compilerOptions) => {
17711
- return typeof compilerOptions.module === "number" ? compilerOptions.module : computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
17745
+ return typeof compilerOptions.module === "number" ? compilerOptions.module : _computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
17712
17746
  }
17713
17747
  },
17714
17748
  moduleResolution: {
@@ -17716,7 +17750,7 @@ var computedOptions = createComputedCompilerOptions({
17716
17750
  computeValue: (compilerOptions) => {
17717
17751
  let moduleResolution = compilerOptions.moduleResolution;
17718
17752
  if (moduleResolution === void 0) {
17719
- switch (computedOptions.module.computeValue(compilerOptions)) {
17753
+ switch (_computedOptions.module.computeValue(compilerOptions)) {
17720
17754
  case 1 /* CommonJS */:
17721
17755
  moduleResolution = 2 /* Node10 */;
17722
17756
  break;
@@ -17740,7 +17774,7 @@ var computedOptions = createComputedCompilerOptions({
17740
17774
  moduleDetection: {
17741
17775
  dependencies: ["module", "target"],
17742
17776
  computeValue: (compilerOptions) => {
17743
- return compilerOptions.moduleDetection || (computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
17777
+ return compilerOptions.moduleDetection || (_computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || _computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
17744
17778
  }
17745
17779
  },
17746
17780
  isolatedModules: {
@@ -17755,7 +17789,7 @@ var computedOptions = createComputedCompilerOptions({
17755
17789
  if (compilerOptions.esModuleInterop !== void 0) {
17756
17790
  return compilerOptions.esModuleInterop;
17757
17791
  }
17758
- switch (computedOptions.module.computeValue(compilerOptions)) {
17792
+ switch (_computedOptions.module.computeValue(compilerOptions)) {
17759
17793
  case 100 /* Node16 */:
17760
17794
  case 199 /* NodeNext */:
17761
17795
  case 200 /* Preserve */:
@@ -17770,13 +17804,13 @@ var computedOptions = createComputedCompilerOptions({
17770
17804
  if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
17771
17805
  return compilerOptions.allowSyntheticDefaultImports;
17772
17806
  }
17773
- return computedOptions.esModuleInterop.computeValue(compilerOptions) || computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
17807
+ return _computedOptions.esModuleInterop.computeValue(compilerOptions) || _computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || _computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
17774
17808
  }
17775
17809
  },
17776
17810
  resolvePackageJsonExports: {
17777
17811
  dependencies: ["moduleResolution"],
17778
17812
  computeValue: (compilerOptions) => {
17779
- const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions);
17813
+ const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
17780
17814
  if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
17781
17815
  return false;
17782
17816
  }
@@ -17795,7 +17829,7 @@ var computedOptions = createComputedCompilerOptions({
17795
17829
  resolvePackageJsonImports: {
17796
17830
  dependencies: ["moduleResolution", "resolvePackageJsonExports"],
17797
17831
  computeValue: (compilerOptions) => {
17798
- const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions);
17832
+ const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
17799
17833
  if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
17800
17834
  return false;
17801
17835
  }
@@ -17817,7 +17851,7 @@ var computedOptions = createComputedCompilerOptions({
17817
17851
  if (compilerOptions.resolveJsonModule !== void 0) {
17818
17852
  return compilerOptions.resolveJsonModule;
17819
17853
  }
17820
- return computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
17854
+ return _computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
17821
17855
  }
17822
17856
  },
17823
17857
  declaration: {
@@ -17829,7 +17863,7 @@ var computedOptions = createComputedCompilerOptions({
17829
17863
  preserveConstEnums: {
17830
17864
  dependencies: ["isolatedModules", "verbatimModuleSyntax"],
17831
17865
  computeValue: (compilerOptions) => {
17832
- return !!(compilerOptions.preserveConstEnums || computedOptions.isolatedModules.computeValue(compilerOptions));
17866
+ return !!(compilerOptions.preserveConstEnums || _computedOptions.isolatedModules.computeValue(compilerOptions));
17833
17867
  }
17834
17868
  },
17835
17869
  incremental: {
@@ -17841,7 +17875,7 @@ var computedOptions = createComputedCompilerOptions({
17841
17875
  declarationMap: {
17842
17876
  dependencies: ["declaration", "composite"],
17843
17877
  computeValue: (compilerOptions) => {
17844
- return !!(compilerOptions.declarationMap && computedOptions.declaration.computeValue(compilerOptions));
17878
+ return !!(compilerOptions.declarationMap && _computedOptions.declaration.computeValue(compilerOptions));
17845
17879
  }
17846
17880
  },
17847
17881
  allowJs: {
@@ -17853,7 +17887,7 @@ var computedOptions = createComputedCompilerOptions({
17853
17887
  useDefineForClassFields: {
17854
17888
  dependencies: ["target", "module"],
17855
17889
  computeValue: (compilerOptions) => {
17856
- return compilerOptions.useDefineForClassFields === void 0 ? computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
17890
+ return compilerOptions.useDefineForClassFields === void 0 ? _computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
17857
17891
  }
17858
17892
  },
17859
17893
  noImplicitAny: {
@@ -17911,22 +17945,23 @@ var computedOptions = createComputedCompilerOptions({
17911
17945
  }
17912
17946
  }
17913
17947
  });
17914
- var getEmitScriptTarget = computedOptions.target.computeValue;
17915
- var getEmitModuleKind = computedOptions.module.computeValue;
17916
- var getEmitModuleResolutionKind = computedOptions.moduleResolution.computeValue;
17917
- var getEmitModuleDetectionKind = computedOptions.moduleDetection.computeValue;
17918
- var getIsolatedModules = computedOptions.isolatedModules.computeValue;
17919
- var getESModuleInterop = computedOptions.esModuleInterop.computeValue;
17920
- var getAllowSyntheticDefaultImports = computedOptions.allowSyntheticDefaultImports.computeValue;
17921
- var getResolvePackageJsonExports = computedOptions.resolvePackageJsonExports.computeValue;
17922
- var getResolvePackageJsonImports = computedOptions.resolvePackageJsonImports.computeValue;
17923
- var getResolveJsonModule = computedOptions.resolveJsonModule.computeValue;
17924
- var getEmitDeclarations = computedOptions.declaration.computeValue;
17925
- var shouldPreserveConstEnums = computedOptions.preserveConstEnums.computeValue;
17926
- var isIncrementalCompilation = computedOptions.incremental.computeValue;
17927
- var getAreDeclarationMapsEnabled = computedOptions.declarationMap.computeValue;
17928
- var getAllowJSCompilerOption = computedOptions.allowJs.computeValue;
17929
- var getUseDefineForClassFields = computedOptions.useDefineForClassFields.computeValue;
17948
+ var computedOptions = _computedOptions;
17949
+ var getEmitScriptTarget = _computedOptions.target.computeValue;
17950
+ var getEmitModuleKind = _computedOptions.module.computeValue;
17951
+ var getEmitModuleResolutionKind = _computedOptions.moduleResolution.computeValue;
17952
+ var getEmitModuleDetectionKind = _computedOptions.moduleDetection.computeValue;
17953
+ var getIsolatedModules = _computedOptions.isolatedModules.computeValue;
17954
+ var getESModuleInterop = _computedOptions.esModuleInterop.computeValue;
17955
+ var getAllowSyntheticDefaultImports = _computedOptions.allowSyntheticDefaultImports.computeValue;
17956
+ var getResolvePackageJsonExports = _computedOptions.resolvePackageJsonExports.computeValue;
17957
+ var getResolvePackageJsonImports = _computedOptions.resolvePackageJsonImports.computeValue;
17958
+ var getResolveJsonModule = _computedOptions.resolveJsonModule.computeValue;
17959
+ var getEmitDeclarations = _computedOptions.declaration.computeValue;
17960
+ var shouldPreserveConstEnums = _computedOptions.preserveConstEnums.computeValue;
17961
+ var isIncrementalCompilation = _computedOptions.incremental.computeValue;
17962
+ var getAreDeclarationMapsEnabled = _computedOptions.declarationMap.computeValue;
17963
+ var getAllowJSCompilerOption = _computedOptions.allowJs.computeValue;
17964
+ var getUseDefineForClassFields = _computedOptions.useDefineForClassFields.computeValue;
17930
17965
  function emitModuleKindIsNonNodeESM(moduleKind) {
17931
17966
  return moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */;
17932
17967
  }
@@ -40815,13 +40850,13 @@ function comparePatternKeys(a, b) {
40815
40850
  const bPatternIndex = b.indexOf("*");
40816
40851
  const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1;
40817
40852
  const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1;
40818
- if (baseLenA > baseLenB) return -1;
40819
- if (baseLenB > baseLenA) return 1;
40820
- if (aPatternIndex === -1) return 1;
40821
- if (bPatternIndex === -1) return -1;
40822
- if (a.length > b.length) return -1;
40823
- if (b.length > a.length) return 1;
40824
- return 0;
40853
+ if (baseLenA > baseLenB) return -1 /* LessThan */;
40854
+ if (baseLenB > baseLenA) return 1 /* GreaterThan */;
40855
+ if (aPatternIndex === -1) return 1 /* GreaterThan */;
40856
+ if (bPatternIndex === -1) return -1 /* LessThan */;
40857
+ if (a.length > b.length) return -1 /* LessThan */;
40858
+ if (b.length > a.length) return 1 /* GreaterThan */;
40859
+ return 0 /* EqualTo */;
40825
40860
  }
40826
40861
  function loadModuleFromImportsOrExports(extensions, state, cache, redirectedReference, moduleName, lookupTable, scope, isImports) {
40827
40862
  const loadModuleFromTargetImportOrExport = getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, moduleName, scope, isImports);
@@ -41436,7 +41471,7 @@ function resolveFromTypeRoot(moduleName, state) {
41436
41471
  }
41437
41472
  }
41438
41473
  function shouldAllowImportingTsExtension(compilerOptions, fromFileName) {
41439
- return !!compilerOptions.allowImportingTsExtensions || fromFileName && isDeclarationFileName(fromFileName);
41474
+ return !!compilerOptions.allowImportingTsExtensions || !!fromFileName && isDeclarationFileName(fromFileName);
41440
41475
  }
41441
41476
  function loadModuleFromGlobalCache(moduleName, projectName, compilerOptions, host, globalCache, packageJsonInfoCache) {
41442
41477
  const traceEnabled = isTraceEnabled(compilerOptions, host);
@@ -45843,6 +45878,7 @@ function createTypeChecker(host) {
45843
45878
  getBaseTypeOfLiteralType,
45844
45879
  getWidenedType,
45845
45880
  getWidenedLiteralType,
45881
+ fillMissingTypeArguments,
45846
45882
  getTypeFromTypeNode: (nodeIn) => {
45847
45883
  const node = getParseTreeNode(nodeIn, isTypeNode);
45848
45884
  return node ? getTypeFromTypeNode(node) : errorType;
@@ -72474,7 +72510,7 @@ function createTypeChecker(host) {
72474
72510
  return globalRegExpType;
72475
72511
  }
72476
72512
  function checkSpreadExpression(node, checkMode) {
72477
- if (languageVersion < 2 /* SpreadElements */) {
72513
+ if (languageVersion < LanguageFeatureMinimumTarget.SpreadElements) {
72478
72514
  checkExternalEmitHelpers(node, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */);
72479
72515
  }
72480
72516
  const arrayOrIterableType = checkExpression(node.expression, checkMode);
@@ -72508,7 +72544,7 @@ function createTypeChecker(host) {
72508
72544
  for (let i = 0; i < elementCount; i++) {
72509
72545
  const e = elements[i];
72510
72546
  if (e.kind === 230 /* SpreadElement */) {
72511
- if (languageVersion < 2 /* SpreadElements */) {
72547
+ if (languageVersion < LanguageFeatureMinimumTarget.SpreadElements) {
72512
72548
  checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */);
72513
72549
  }
72514
72550
  const spreadType = checkExpression(e.expression, checkMode, forceTuple);
@@ -72733,7 +72769,7 @@ function createTypeChecker(host) {
72733
72769
  addIntraExpressionInferenceSite(inferenceContext, inferenceNode, type);
72734
72770
  }
72735
72771
  } else if (memberDecl.kind === 305 /* SpreadAssignment */) {
72736
- if (languageVersion < 2 /* ObjectAssign */) {
72772
+ if (languageVersion < LanguageFeatureMinimumTarget.ObjectAssign) {
72737
72773
  checkExternalEmitHelpers(memberDecl, 2 /* Assign */);
72738
72774
  }
72739
72775
  if (propertiesArray.length > 0) {
@@ -73710,7 +73746,7 @@ function createTypeChecker(host) {
73710
73746
  const isAnyLike = isTypeAny(apparentType) || apparentType === silentNeverType;
73711
73747
  let prop;
73712
73748
  if (isPrivateIdentifier(right)) {
73713
- if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) {
73749
+ if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) {
73714
73750
  if (assignmentKind !== 0 /* None */) {
73715
73751
  checkExternalEmitHelpers(node, 1048576 /* ClassPrivateFieldSet */);
73716
73752
  }
@@ -76327,7 +76363,7 @@ function createTypeChecker(host) {
76327
76363
  }
76328
76364
  function checkTaggedTemplateExpression(node) {
76329
76365
  if (!checkGrammarTaggedTemplateChain(node)) checkGrammarTypeArguments(node, node.typeArguments);
76330
- if (languageVersion < 2 /* TaggedTemplates */) {
76366
+ if (languageVersion < LanguageFeatureMinimumTarget.TaggedTemplates) {
76331
76367
  checkExternalEmitHelpers(node, 262144 /* MakeTemplateObject */);
76332
76368
  }
76333
76369
  const signature = getResolvedSignature(node);
@@ -78039,7 +78075,7 @@ function createTypeChecker(host) {
78039
78075
  return silentNeverType;
78040
78076
  }
78041
78077
  if (isPrivateIdentifier(left)) {
78042
- if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) {
78078
+ if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) {
78043
78079
  checkExternalEmitHelpers(left, 2097152 /* ClassPrivateFieldIn */);
78044
78080
  }
78045
78081
  if (!getNodeLinks(left).resolvedSymbol && getContainingClass(left)) {
@@ -78100,7 +78136,7 @@ function createTypeChecker(host) {
78100
78136
  if (propertyIndex < properties.length - 1) {
78101
78137
  error(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);
78102
78138
  } else {
78103
- if (languageVersion < 5 /* ObjectSpreadRest */) {
78139
+ if (languageVersion < LanguageFeatureMinimumTarget.ObjectSpreadRest) {
78104
78140
  checkExternalEmitHelpers(property, 4 /* Rest */);
78105
78141
  }
78106
78142
  const nonRestNames = [];
@@ -78121,7 +78157,7 @@ function createTypeChecker(host) {
78121
78157
  }
78122
78158
  function checkArrayLiteralAssignment(node, sourceType, checkMode) {
78123
78159
  const elements = node.elements;
78124
- if (languageVersion < 2 /* DestructuringAssignment */ && compilerOptions.downlevelIteration) {
78160
+ if (languageVersion < LanguageFeatureMinimumTarget.DestructuringAssignment && compilerOptions.downlevelIteration) {
78125
78161
  checkExternalEmitHelpers(node, 512 /* Read */);
78126
78162
  }
78127
78163
  const possiblyOutOfBoundsType = checkIteratedTypeOrElementType(65 /* Destructuring */ | 128 /* PossiblyOutOfBounds */, sourceType, undefinedType, node) || errorType;
@@ -78895,10 +78931,10 @@ function createTypeChecker(host) {
78895
78931
  }
78896
78932
  const isAsync = (functionFlags & 2 /* Async */) !== 0;
78897
78933
  if (node.asteriskToken) {
78898
- if (isAsync && languageVersion < 5 /* AsyncGenerators */) {
78934
+ if (isAsync && languageVersion < LanguageFeatureMinimumTarget.AsyncGenerators) {
78899
78935
  checkExternalEmitHelpers(node, 26624 /* AsyncDelegatorIncludes */);
78900
78936
  }
78901
- if (!isAsync && languageVersion < 2 /* Generators */ && compilerOptions.downlevelIteration) {
78937
+ if (!isAsync && languageVersion < LanguageFeatureMinimumTarget.Generators && compilerOptions.downlevelIteration) {
78902
78938
  checkExternalEmitHelpers(node, 256 /* Values */);
78903
78939
  }
78904
78940
  }
@@ -79728,13 +79764,13 @@ function createTypeChecker(host) {
79728
79764
  }
79729
79765
  const functionFlags = getFunctionFlags(node);
79730
79766
  if (!(functionFlags & 4 /* Invalid */)) {
79731
- if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < 5 /* AsyncGenerators */) {
79767
+ if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < LanguageFeatureMinimumTarget.AsyncGenerators) {
79732
79768
  checkExternalEmitHelpers(node, 6144 /* AsyncGeneratorIncludes */);
79733
79769
  }
79734
- if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < 4 /* AsyncFunctions */) {
79770
+ if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < LanguageFeatureMinimumTarget.AsyncFunctions) {
79735
79771
  checkExternalEmitHelpers(node, 64 /* Awaiter */);
79736
79772
  }
79737
- if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < 2 /* Generators */) {
79773
+ if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < LanguageFeatureMinimumTarget.Generators) {
79738
79774
  checkExternalEmitHelpers(node, 128 /* Generator */);
79739
79775
  }
79740
79776
  }
@@ -79967,7 +80003,7 @@ function createTypeChecker(host) {
79967
80003
  }
79968
80004
  function setNodeLinksForPrivateIdentifierScope(node) {
79969
80005
  if (isPrivateIdentifier(node.name)) {
79970
- if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) {
80006
+ if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) {
79971
80007
  for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) {
79972
80008
  getNodeLinks(lexicalScope).flags |= 1048576 /* ContainsClassWithPrivateIdentifiers */;
79973
80009
  }
@@ -81107,7 +81143,7 @@ function createTypeChecker(host) {
81107
81143
  if (node.kind === 169 /* Parameter */) {
81108
81144
  checkExternalEmitHelpers(firstDecorator, 32 /* Param */);
81109
81145
  }
81110
- } else if (languageVersion < 99 /* ClassAndClassElementDecorators */) {
81146
+ } else if (languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators) {
81111
81147
  checkExternalEmitHelpers(firstDecorator, 8 /* ESDecorateAndRunInitializers */);
81112
81148
  if (isClassDeclaration(node)) {
81113
81149
  if (!node.name) {
@@ -81773,7 +81809,7 @@ function createTypeChecker(host) {
81773
81809
  potentialUnusedRenamedBindingElementsInTypes.push(node);
81774
81810
  return;
81775
81811
  }
81776
- if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < 5 /* ObjectSpreadRest */) {
81812
+ if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < LanguageFeatureMinimumTarget.ObjectSpreadRest) {
81777
81813
  checkExternalEmitHelpers(node, 4 /* Rest */);
81778
81814
  }
81779
81815
  if (node.propertyName && node.propertyName.kind === 167 /* ComputedPropertyName */) {
@@ -81809,7 +81845,7 @@ function createTypeChecker(host) {
81809
81845
  }
81810
81846
  }
81811
81847
  if (isBindingPattern(node.name)) {
81812
- if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < 2 /* BindingPatterns */ && compilerOptions.downlevelIteration) {
81848
+ if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < LanguageFeatureMinimumTarget.BindingPatterns && compilerOptions.downlevelIteration) {
81813
81849
  checkExternalEmitHelpers(node, 512 /* Read */);
81814
81850
  }
81815
81851
  forEach(node.name.elements, checkSourceElement);
@@ -81963,7 +81999,7 @@ function createTypeChecker(host) {
81963
81999
  }
81964
82000
  function checkVariableDeclarationList(node) {
81965
82001
  const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */;
81966
- if ((blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) && languageVersion < 99 /* UsingAndAwaitUsing */) {
82002
+ if ((blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) && languageVersion < LanguageFeatureMinimumTarget.UsingAndAwaitUsing) {
81967
82003
  checkExternalEmitHelpers(node, 16777216 /* AddDisposableResourceAndDisposeResources */);
81968
82004
  }
81969
82005
  forEach(node.declarations, checkSourceElement);
@@ -82177,11 +82213,11 @@ function createTypeChecker(host) {
82177
82213
  grammarErrorOnNode(node.awaitModifier, Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block);
82178
82214
  } else {
82179
82215
  const functionFlags = getFunctionFlags(container);
82180
- if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < 5 /* ForAwaitOf */) {
82216
+ if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < LanguageFeatureMinimumTarget.ForAwaitOf) {
82181
82217
  checkExternalEmitHelpers(node, 16384 /* ForAwaitOfIncludes */);
82182
82218
  }
82183
82219
  }
82184
- } else if (compilerOptions.downlevelIteration && languageVersion < 2 /* ForOf */) {
82220
+ } else if (compilerOptions.downlevelIteration && languageVersion < LanguageFeatureMinimumTarget.ForOf) {
82185
82221
  checkExternalEmitHelpers(node, 256 /* ForOfIncludes */);
82186
82222
  }
82187
82223
  if (node.initializer.kind === 261 /* VariableDeclarationList */) {
@@ -83222,12 +83258,12 @@ function createTypeChecker(host) {
83222
83258
  return true;
83223
83259
  }
83224
83260
  function getFirstTransformableStaticClassElement(node) {
83225
- const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < 99 /* ClassAndClassElementDecorators */ && classOrConstructorParameterIsDecorated(
83261
+ const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators && classOrConstructorParameterIsDecorated(
83226
83262
  /*useLegacyDecorators*/
83227
83263
  false,
83228
83264
  node
83229
83265
  );
83230
- const willTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */;
83266
+ const willTransformPrivateElementsOrClassStaticBlocks = languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators;
83231
83267
  const willTransformInitializers = !emitStandardClassFields;
83232
83268
  if (willTransformStaticElementsOfDecoratedClass || willTransformPrivateElementsOrClassStaticBlocks) {
83233
83269
  for (const member of node.members) {
@@ -83254,7 +83290,7 @@ function createTypeChecker(host) {
83254
83290
  if (node.name) return;
83255
83291
  const parent = walkUpOuterExpressions(node);
83256
83292
  if (!isNamedEvaluationSource(parent)) return;
83257
- const willTransformESDecorators = !legacyDecorators && languageVersion < 99 /* ClassAndClassElementDecorators */;
83293
+ const willTransformESDecorators = !legacyDecorators && languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators;
83258
83294
  let location;
83259
83295
  if (willTransformESDecorators && classOrConstructorParameterIsDecorated(
83260
83296
  /*useLegacyDecorators*/
@@ -83314,7 +83350,7 @@ function createTypeChecker(host) {
83314
83350
  const baseTypeNode = getEffectiveBaseTypeNode(node);
83315
83351
  if (baseTypeNode) {
83316
83352
  forEach(baseTypeNode.typeArguments, checkSourceElement);
83317
- if (languageVersion < 2 /* Classes */) {
83353
+ if (languageVersion < LanguageFeatureMinimumTarget.Classes) {
83318
83354
  checkExternalEmitHelpers(baseTypeNode.parent, 1 /* Extends */);
83319
83355
  }
83320
83356
  const extendsNode = getClassExtendsHeritageElement(node);
@@ -2841,14 +2841,14 @@ declare namespace ts {
2841
2841
  readonly jsDocParsingMode: JSDocParsingMode | undefined;
2842
2842
  isKnownTypesPackageName(name: string): boolean;
2843
2843
  installPackage(options: InstallPackageOptions): Promise<ApplyCodeActionCommandResult>;
2844
- getCompilationSettings(): ts.CompilerOptions;
2845
- getCompilerOptions(): ts.CompilerOptions;
2844
+ getCompilationSettings(): CompilerOptions;
2845
+ getCompilerOptions(): CompilerOptions;
2846
2846
  getNewLine(): string;
2847
2847
  getProjectVersion(): string;
2848
2848
  getProjectReferences(): readonly ProjectReference[] | undefined;
2849
2849
  getScriptFileNames(): string[];
2850
2850
  private getOrCreateScriptInfoAndAttachToProject;
2851
- getScriptKind(fileName: string): ts.ScriptKind;
2851
+ getScriptKind(fileName: string): ScriptKind;
2852
2852
  getScriptVersion(filename: string): string;
2853
2853
  getScriptSnapshot(filename: string): IScriptSnapshot | undefined;
2854
2854
  getCancellationToken(): HostCancellationToken;
@@ -2884,16 +2884,16 @@ declare namespace ts {
2884
2884
  getProjectName(): string;
2885
2885
  protected removeLocalTypingsFromTypeAcquisition(newTypeAcquisition: TypeAcquisition): TypeAcquisition;
2886
2886
  getExternalFiles(updateLevel?: ProgramUpdateLevel): SortedReadonlyArray<string>;
2887
- getSourceFile(path: Path): ts.SourceFile | undefined;
2887
+ getSourceFile(path: Path): SourceFile | undefined;
2888
2888
  close(): void;
2889
2889
  private detachScriptInfoIfNotRoot;
2890
2890
  isClosed(): boolean;
2891
2891
  hasRoots(): boolean;
2892
2892
  getRootFiles(): NormalizedPath[];
2893
- getRootScriptInfos(): ts.server.ScriptInfo[];
2893
+ getRootScriptInfos(): ScriptInfo[];
2894
2894
  getScriptInfos(): ScriptInfo[];
2895
2895
  getExcludedFiles(): readonly NormalizedPath[];
2896
- getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean): ts.server.NormalizedPath[];
2896
+ getFileNames(excludeFilesFromExternalLibraries?: boolean, excludeConfigFiles?: boolean): NormalizedPath[];
2897
2897
  hasConfigFile(configFilePath: NormalizedPath): boolean;
2898
2898
  containsScriptInfo(info: ScriptInfo): boolean;
2899
2899
  containsFile(filename: NormalizedPath, requireOpen?: boolean): boolean;
@@ -2918,12 +2918,12 @@ declare namespace ts {
2918
2918
  private isValidGeneratedFileWatcher;
2919
2919
  private clearGeneratedFileWatch;
2920
2920
  getScriptInfoForNormalizedPath(fileName: NormalizedPath): ScriptInfo | undefined;
2921
- getScriptInfo(uncheckedFileName: string): ts.server.ScriptInfo | undefined;
2921
+ getScriptInfo(uncheckedFileName: string): ScriptInfo | undefined;
2922
2922
  filesToString(writeProjectFileNames: boolean): string;
2923
2923
  private filesToStringWorker;
2924
2924
  setCompilerOptions(compilerOptions: CompilerOptions): void;
2925
2925
  setTypeAcquisition(newTypeAcquisition: TypeAcquisition | undefined): void;
2926
- getTypeAcquisition(): ts.TypeAcquisition;
2926
+ getTypeAcquisition(): TypeAcquisition;
2927
2927
  protected removeRoot(info: ScriptInfo): void;
2928
2928
  protected enableGlobalPlugins(options: CompilerOptions): void;
2929
2929
  protected enablePlugin(pluginConfigEntry: PluginImport, searchPaths: string[]): void;
@@ -2956,7 +2956,7 @@ declare namespace ts {
2956
2956
  getScriptFileNames(): string[];
2957
2957
  getLanguageService(): never;
2958
2958
  getHostForAutoImportProvider(): never;
2959
- getProjectReferences(): readonly ts.ProjectReference[] | undefined;
2959
+ getProjectReferences(): readonly ProjectReference[] | undefined;
2960
2960
  }
2961
2961
  /**
2962
2962
  * If a file is opened, the server will look for a tsconfig (or jsconfig)
@@ -2973,7 +2973,7 @@ declare namespace ts {
2973
2973
  * @returns: true if set of files in the project stays the same and false - otherwise.
2974
2974
  */
2975
2975
  updateGraph(): boolean;
2976
- getConfigFilePath(): ts.server.NormalizedPath;
2976
+ getConfigFilePath(): NormalizedPath;
2977
2977
  getProjectReferences(): readonly ProjectReference[] | undefined;
2978
2978
  updateReferences(refs: readonly ProjectReference[] | undefined): void;
2979
2979
  /**
@@ -2997,14 +2997,14 @@ declare namespace ts {
2997
2997
  compileOnSaveEnabled: boolean;
2998
2998
  excludedFiles: readonly NormalizedPath[];
2999
2999
  updateGraph(): boolean;
3000
- getExcludedFiles(): readonly ts.server.NormalizedPath[];
3000
+ getExcludedFiles(): readonly NormalizedPath[];
3001
3001
  }
3002
3002
  function convertFormatOptions(protocolOptions: protocol.FormatCodeSettings): FormatCodeSettings;
3003
3003
  function convertCompilerOptions(protocolOptions: protocol.ExternalProjectCompilerOptions): CompilerOptions & protocol.CompileOnSaveMixin;
3004
3004
  function convertWatchOptions(protocolOptions: protocol.ExternalProjectCompilerOptions, currentDirectory?: string): WatchOptionsAndErrors | undefined;
3005
3005
  function convertTypeAcquisition(protocolOptions: protocol.InferredProjectCompilerOptions): TypeAcquisition | undefined;
3006
3006
  function tryConvertScriptKindName(scriptKindName: protocol.ScriptKindName | ScriptKind): ScriptKind;
3007
- function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind.Unknown | ScriptKind.JS | ScriptKind.JSX | ScriptKind.TS | ScriptKind.TSX;
3007
+ function convertScriptKindName(scriptKindName: protocol.ScriptKindName): ScriptKind;
3008
3008
  const maxProgramSizeForNonTsFiles: number;
3009
3009
  const ProjectsUpdatedInBackgroundEvent = "projectsUpdatedInBackground";
3010
3010
  interface ProjectsUpdatedInBackgroundEvent {
package/lib/typescript.js CHANGED
@@ -2269,7 +2269,7 @@ module.exports = __toCommonJS(typescript_exports);
2269
2269
 
2270
2270
  // src/compiler/corePublic.ts
2271
2271
  var versionMajorMinor = "5.7";
2272
- var version = `${versionMajorMinor}.0-dev.20240915`;
2272
+ var version = `${versionMajorMinor}.0-dev.20240917`;
2273
2273
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2274
2274
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2275
2275
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -7041,43 +7041,42 @@ var InternalEmitFlags = /* @__PURE__ */ ((InternalEmitFlags3) => {
7041
7041
  InternalEmitFlags3[InternalEmitFlags3["TransformPrivateStaticElements"] = 32] = "TransformPrivateStaticElements";
7042
7042
  return InternalEmitFlags3;
7043
7043
  })(InternalEmitFlags || {});
7044
- var LanguageFeatureMinimumTarget = /* @__PURE__ */ ((LanguageFeatureMinimumTarget2) => {
7045
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["Classes"] = 2 /* ES2015 */] = "Classes";
7046
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ForOf"] = 2 /* ES2015 */] = "ForOf";
7047
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["Generators"] = 2 /* ES2015 */] = "Generators";
7048
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["Iteration"] = 2 /* ES2015 */] = "Iteration";
7049
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["SpreadElements"] = 2 /* ES2015 */] = "SpreadElements";
7050
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RestElements"] = 2 /* ES2015 */] = "RestElements";
7051
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["TaggedTemplates"] = 2 /* ES2015 */] = "TaggedTemplates";
7052
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["DestructuringAssignment"] = 2 /* ES2015 */] = "DestructuringAssignment";
7053
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["BindingPatterns"] = 2 /* ES2015 */] = "BindingPatterns";
7054
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ArrowFunctions"] = 2 /* ES2015 */] = "ArrowFunctions";
7055
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["BlockScopedVariables"] = 2 /* ES2015 */] = "BlockScopedVariables";
7056
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ObjectAssign"] = 2 /* ES2015 */] = "ObjectAssign";
7057
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsUnicode"] = 2 /* ES2015 */] = "RegularExpressionFlagsUnicode";
7058
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsSticky"] = 2 /* ES2015 */] = "RegularExpressionFlagsSticky";
7059
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["Exponentiation"] = 3 /* ES2016 */] = "Exponentiation";
7060
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["AsyncFunctions"] = 4 /* ES2017 */] = "AsyncFunctions";
7061
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ForAwaitOf"] = 5 /* ES2018 */] = "ForAwaitOf";
7062
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["AsyncGenerators"] = 5 /* ES2018 */] = "AsyncGenerators";
7063
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["AsyncIteration"] = 5 /* ES2018 */] = "AsyncIteration";
7064
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ObjectSpreadRest"] = 5 /* ES2018 */] = "ObjectSpreadRest";
7065
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsDotAll"] = 5 /* ES2018 */] = "RegularExpressionFlagsDotAll";
7066
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["BindinglessCatch"] = 6 /* ES2019 */] = "BindinglessCatch";
7067
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["BigInt"] = 7 /* ES2020 */] = "BigInt";
7068
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["NullishCoalesce"] = 7 /* ES2020 */] = "NullishCoalesce";
7069
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["OptionalChaining"] = 7 /* ES2020 */] = "OptionalChaining";
7070
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["LogicalAssignment"] = 8 /* ES2021 */] = "LogicalAssignment";
7071
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["TopLevelAwait"] = 9 /* ES2022 */] = "TopLevelAwait";
7072
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ClassFields"] = 9 /* ES2022 */] = "ClassFields";
7073
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["PrivateNamesAndClassStaticBlocks"] = 9 /* ES2022 */] = "PrivateNamesAndClassStaticBlocks";
7074
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsHasIndices"] = 9 /* ES2022 */] = "RegularExpressionFlagsHasIndices";
7075
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ShebangComments"] = 99 /* ESNext */] = "ShebangComments";
7076
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["UsingAndAwaitUsing"] = 99 /* ESNext */] = "UsingAndAwaitUsing";
7077
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["ClassAndClassElementDecorators"] = 99 /* ESNext */] = "ClassAndClassElementDecorators";
7078
- LanguageFeatureMinimumTarget2[LanguageFeatureMinimumTarget2["RegularExpressionFlagsUnicodeSets"] = 99 /* ESNext */] = "RegularExpressionFlagsUnicodeSets";
7079
- return LanguageFeatureMinimumTarget2;
7080
- })(LanguageFeatureMinimumTarget || {});
7044
+ var LanguageFeatureMinimumTarget = {
7045
+ Classes: 2 /* ES2015 */,
7046
+ ForOf: 2 /* ES2015 */,
7047
+ Generators: 2 /* ES2015 */,
7048
+ Iteration: 2 /* ES2015 */,
7049
+ SpreadElements: 2 /* ES2015 */,
7050
+ RestElements: 2 /* ES2015 */,
7051
+ TaggedTemplates: 2 /* ES2015 */,
7052
+ DestructuringAssignment: 2 /* ES2015 */,
7053
+ BindingPatterns: 2 /* ES2015 */,
7054
+ ArrowFunctions: 2 /* ES2015 */,
7055
+ BlockScopedVariables: 2 /* ES2015 */,
7056
+ ObjectAssign: 2 /* ES2015 */,
7057
+ RegularExpressionFlagsUnicode: 2 /* ES2015 */,
7058
+ RegularExpressionFlagsSticky: 2 /* ES2015 */,
7059
+ Exponentiation: 3 /* ES2016 */,
7060
+ AsyncFunctions: 4 /* ES2017 */,
7061
+ ForAwaitOf: 5 /* ES2018 */,
7062
+ AsyncGenerators: 5 /* ES2018 */,
7063
+ AsyncIteration: 5 /* ES2018 */,
7064
+ ObjectSpreadRest: 5 /* ES2018 */,
7065
+ RegularExpressionFlagsDotAll: 5 /* ES2018 */,
7066
+ BindinglessCatch: 6 /* ES2019 */,
7067
+ BigInt: 7 /* ES2020 */,
7068
+ NullishCoalesce: 7 /* ES2020 */,
7069
+ OptionalChaining: 7 /* ES2020 */,
7070
+ LogicalAssignment: 8 /* ES2021 */,
7071
+ TopLevelAwait: 9 /* ES2022 */,
7072
+ ClassFields: 9 /* ES2022 */,
7073
+ PrivateNamesAndClassStaticBlocks: 9 /* ES2022 */,
7074
+ RegularExpressionFlagsHasIndices: 9 /* ES2022 */,
7075
+ ShebangComments: 99 /* ESNext */,
7076
+ UsingAndAwaitUsing: 99 /* ESNext */,
7077
+ ClassAndClassElementDecorators: 99 /* ESNext */,
7078
+ RegularExpressionFlagsUnicodeSets: 99 /* ESNext */
7079
+ };
7081
7080
  var ExternalEmitHelpers = /* @__PURE__ */ ((ExternalEmitHelpers2) => {
7082
7081
  ExternalEmitHelpers2[ExternalEmitHelpers2["Extends"] = 1] = "Extends";
7083
7082
  ExternalEmitHelpers2[ExternalEmitHelpers2["Assign"] = 2] = "Assign";
@@ -11474,11 +11473,11 @@ var charCodeToRegExpFlag = /* @__PURE__ */ new Map([
11474
11473
  [121 /* y */, 128 /* Sticky */]
11475
11474
  ]);
11476
11475
  var regExpFlagToFirstAvailableLanguageVersion = /* @__PURE__ */ new Map([
11477
- [1 /* HasIndices */, 9 /* RegularExpressionFlagsHasIndices */],
11478
- [16 /* DotAll */, 5 /* RegularExpressionFlagsDotAll */],
11479
- [32 /* Unicode */, 2 /* RegularExpressionFlagsUnicode */],
11480
- [64 /* UnicodeSets */, 99 /* RegularExpressionFlagsUnicodeSets */],
11481
- [128 /* Sticky */, 2 /* RegularExpressionFlagsSticky */]
11476
+ [1 /* HasIndices */, LanguageFeatureMinimumTarget.RegularExpressionFlagsHasIndices],
11477
+ [16 /* DotAll */, LanguageFeatureMinimumTarget.RegularExpressionFlagsDotAll],
11478
+ [32 /* Unicode */, LanguageFeatureMinimumTarget.RegularExpressionFlagsUnicode],
11479
+ [64 /* UnicodeSets */, LanguageFeatureMinimumTarget.RegularExpressionFlagsUnicodeSets],
11480
+ [128 /* Sticky */, LanguageFeatureMinimumTarget.RegularExpressionFlagsSticky]
11482
11481
  ]);
11483
11482
  var unicodeES5IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2208, 2208, 2210, 2220, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2423, 2425, 2431, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3133, 3160, 3161, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3424, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6e3, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6263, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6428, 6480, 6509, 6512, 6516, 6528, 6571, 6593, 6599, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7401, 7404, 7406, 7409, 7413, 7414, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11823, 11823, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42647, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43648, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];
11484
11483
  var unicodeES5IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1520, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2048, 2093, 2112, 2139, 2208, 2208, 2210, 2220, 2276, 2302, 2304, 2403, 2406, 2415, 2417, 2423, 2425, 2431, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3161, 3168, 3171, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3396, 3398, 3400, 3402, 3406, 3415, 3415, 3424, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6e3, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6263, 6272, 6314, 6320, 6389, 6400, 6428, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6617, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7376, 7378, 7380, 7414, 7424, 7654, 7676, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8204, 8205, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 11823, 11823, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12442, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42647, 42655, 42737, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43e3, 43047, 43072, 43123, 43136, 43204, 43216, 43225, 43232, 43255, 43259, 43259, 43264, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43643, 43648, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65062, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500];
@@ -18747,17 +18746,15 @@ function forEachImportClauseDeclaration(node, action) {
18747
18746
  }
18748
18747
  }
18749
18748
  function hasQuestionToken(node) {
18750
- if (node) {
18751
- switch (node.kind) {
18752
- case 169 /* Parameter */:
18753
- case 174 /* MethodDeclaration */:
18754
- case 173 /* MethodSignature */:
18755
- case 304 /* ShorthandPropertyAssignment */:
18756
- case 303 /* PropertyAssignment */:
18757
- case 172 /* PropertyDeclaration */:
18758
- case 171 /* PropertySignature */:
18759
- return node.questionToken !== void 0;
18760
- }
18749
+ switch (node.kind) {
18750
+ case 169 /* Parameter */:
18751
+ case 174 /* MethodDeclaration */:
18752
+ case 173 /* MethodSignature */:
18753
+ case 304 /* ShorthandPropertyAssignment */:
18754
+ case 303 /* PropertyAssignment */:
18755
+ case 172 /* PropertyDeclaration */:
18756
+ case 171 /* PropertySignature */:
18757
+ return node.questionToken !== void 0;
18761
18758
  }
18762
18759
  return false;
18763
18760
  }
@@ -21671,7 +21668,7 @@ function importSyntaxAffectsModuleResolution(options) {
21671
21668
  function createComputedCompilerOptions(options) {
21672
21669
  return options;
21673
21670
  }
21674
- var computedOptions = createComputedCompilerOptions({
21671
+ var _computedOptions = createComputedCompilerOptions({
21675
21672
  target: {
21676
21673
  dependencies: ["module"],
21677
21674
  computeValue: (compilerOptions) => {
@@ -21682,7 +21679,7 @@ var computedOptions = createComputedCompilerOptions({
21682
21679
  module: {
21683
21680
  dependencies: ["target"],
21684
21681
  computeValue: (compilerOptions) => {
21685
- return typeof compilerOptions.module === "number" ? compilerOptions.module : computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
21682
+ return typeof compilerOptions.module === "number" ? compilerOptions.module : _computedOptions.target.computeValue(compilerOptions) >= 2 /* ES2015 */ ? 5 /* ES2015 */ : 1 /* CommonJS */;
21686
21683
  }
21687
21684
  },
21688
21685
  moduleResolution: {
@@ -21690,7 +21687,7 @@ var computedOptions = createComputedCompilerOptions({
21690
21687
  computeValue: (compilerOptions) => {
21691
21688
  let moduleResolution = compilerOptions.moduleResolution;
21692
21689
  if (moduleResolution === void 0) {
21693
- switch (computedOptions.module.computeValue(compilerOptions)) {
21690
+ switch (_computedOptions.module.computeValue(compilerOptions)) {
21694
21691
  case 1 /* CommonJS */:
21695
21692
  moduleResolution = 2 /* Node10 */;
21696
21693
  break;
@@ -21714,7 +21711,7 @@ var computedOptions = createComputedCompilerOptions({
21714
21711
  moduleDetection: {
21715
21712
  dependencies: ["module", "target"],
21716
21713
  computeValue: (compilerOptions) => {
21717
- return compilerOptions.moduleDetection || (computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
21714
+ return compilerOptions.moduleDetection || (_computedOptions.module.computeValue(compilerOptions) === 100 /* Node16 */ || _computedOptions.module.computeValue(compilerOptions) === 199 /* NodeNext */ ? 3 /* Force */ : 2 /* Auto */);
21718
21715
  }
21719
21716
  },
21720
21717
  isolatedModules: {
@@ -21729,7 +21726,7 @@ var computedOptions = createComputedCompilerOptions({
21729
21726
  if (compilerOptions.esModuleInterop !== void 0) {
21730
21727
  return compilerOptions.esModuleInterop;
21731
21728
  }
21732
- switch (computedOptions.module.computeValue(compilerOptions)) {
21729
+ switch (_computedOptions.module.computeValue(compilerOptions)) {
21733
21730
  case 100 /* Node16 */:
21734
21731
  case 199 /* NodeNext */:
21735
21732
  case 200 /* Preserve */:
@@ -21744,13 +21741,13 @@ var computedOptions = createComputedCompilerOptions({
21744
21741
  if (compilerOptions.allowSyntheticDefaultImports !== void 0) {
21745
21742
  return compilerOptions.allowSyntheticDefaultImports;
21746
21743
  }
21747
- return computedOptions.esModuleInterop.computeValue(compilerOptions) || computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
21744
+ return _computedOptions.esModuleInterop.computeValue(compilerOptions) || _computedOptions.module.computeValue(compilerOptions) === 4 /* System */ || _computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
21748
21745
  }
21749
21746
  },
21750
21747
  resolvePackageJsonExports: {
21751
21748
  dependencies: ["moduleResolution"],
21752
21749
  computeValue: (compilerOptions) => {
21753
- const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions);
21750
+ const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
21754
21751
  if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
21755
21752
  return false;
21756
21753
  }
@@ -21769,7 +21766,7 @@ var computedOptions = createComputedCompilerOptions({
21769
21766
  resolvePackageJsonImports: {
21770
21767
  dependencies: ["moduleResolution", "resolvePackageJsonExports"],
21771
21768
  computeValue: (compilerOptions) => {
21772
- const moduleResolution = computedOptions.moduleResolution.computeValue(compilerOptions);
21769
+ const moduleResolution = _computedOptions.moduleResolution.computeValue(compilerOptions);
21773
21770
  if (!moduleResolutionSupportsPackageJsonExportsAndImports(moduleResolution)) {
21774
21771
  return false;
21775
21772
  }
@@ -21791,7 +21788,7 @@ var computedOptions = createComputedCompilerOptions({
21791
21788
  if (compilerOptions.resolveJsonModule !== void 0) {
21792
21789
  return compilerOptions.resolveJsonModule;
21793
21790
  }
21794
- return computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
21791
+ return _computedOptions.moduleResolution.computeValue(compilerOptions) === 100 /* Bundler */;
21795
21792
  }
21796
21793
  },
21797
21794
  declaration: {
@@ -21803,7 +21800,7 @@ var computedOptions = createComputedCompilerOptions({
21803
21800
  preserveConstEnums: {
21804
21801
  dependencies: ["isolatedModules", "verbatimModuleSyntax"],
21805
21802
  computeValue: (compilerOptions) => {
21806
- return !!(compilerOptions.preserveConstEnums || computedOptions.isolatedModules.computeValue(compilerOptions));
21803
+ return !!(compilerOptions.preserveConstEnums || _computedOptions.isolatedModules.computeValue(compilerOptions));
21807
21804
  }
21808
21805
  },
21809
21806
  incremental: {
@@ -21815,7 +21812,7 @@ var computedOptions = createComputedCompilerOptions({
21815
21812
  declarationMap: {
21816
21813
  dependencies: ["declaration", "composite"],
21817
21814
  computeValue: (compilerOptions) => {
21818
- return !!(compilerOptions.declarationMap && computedOptions.declaration.computeValue(compilerOptions));
21815
+ return !!(compilerOptions.declarationMap && _computedOptions.declaration.computeValue(compilerOptions));
21819
21816
  }
21820
21817
  },
21821
21818
  allowJs: {
@@ -21827,7 +21824,7 @@ var computedOptions = createComputedCompilerOptions({
21827
21824
  useDefineForClassFields: {
21828
21825
  dependencies: ["target", "module"],
21829
21826
  computeValue: (compilerOptions) => {
21830
- return compilerOptions.useDefineForClassFields === void 0 ? computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
21827
+ return compilerOptions.useDefineForClassFields === void 0 ? _computedOptions.target.computeValue(compilerOptions) >= 9 /* ES2022 */ : compilerOptions.useDefineForClassFields;
21831
21828
  }
21832
21829
  },
21833
21830
  noImplicitAny: {
@@ -21885,22 +21882,23 @@ var computedOptions = createComputedCompilerOptions({
21885
21882
  }
21886
21883
  }
21887
21884
  });
21888
- var getEmitScriptTarget = computedOptions.target.computeValue;
21889
- var getEmitModuleKind = computedOptions.module.computeValue;
21890
- var getEmitModuleResolutionKind = computedOptions.moduleResolution.computeValue;
21891
- var getEmitModuleDetectionKind = computedOptions.moduleDetection.computeValue;
21892
- var getIsolatedModules = computedOptions.isolatedModules.computeValue;
21893
- var getESModuleInterop = computedOptions.esModuleInterop.computeValue;
21894
- var getAllowSyntheticDefaultImports = computedOptions.allowSyntheticDefaultImports.computeValue;
21895
- var getResolvePackageJsonExports = computedOptions.resolvePackageJsonExports.computeValue;
21896
- var getResolvePackageJsonImports = computedOptions.resolvePackageJsonImports.computeValue;
21897
- var getResolveJsonModule = computedOptions.resolveJsonModule.computeValue;
21898
- var getEmitDeclarations = computedOptions.declaration.computeValue;
21899
- var shouldPreserveConstEnums = computedOptions.preserveConstEnums.computeValue;
21900
- var isIncrementalCompilation = computedOptions.incremental.computeValue;
21901
- var getAreDeclarationMapsEnabled = computedOptions.declarationMap.computeValue;
21902
- var getAllowJSCompilerOption = computedOptions.allowJs.computeValue;
21903
- var getUseDefineForClassFields = computedOptions.useDefineForClassFields.computeValue;
21885
+ var computedOptions = _computedOptions;
21886
+ var getEmitScriptTarget = _computedOptions.target.computeValue;
21887
+ var getEmitModuleKind = _computedOptions.module.computeValue;
21888
+ var getEmitModuleResolutionKind = _computedOptions.moduleResolution.computeValue;
21889
+ var getEmitModuleDetectionKind = _computedOptions.moduleDetection.computeValue;
21890
+ var getIsolatedModules = _computedOptions.isolatedModules.computeValue;
21891
+ var getESModuleInterop = _computedOptions.esModuleInterop.computeValue;
21892
+ var getAllowSyntheticDefaultImports = _computedOptions.allowSyntheticDefaultImports.computeValue;
21893
+ var getResolvePackageJsonExports = _computedOptions.resolvePackageJsonExports.computeValue;
21894
+ var getResolvePackageJsonImports = _computedOptions.resolvePackageJsonImports.computeValue;
21895
+ var getResolveJsonModule = _computedOptions.resolveJsonModule.computeValue;
21896
+ var getEmitDeclarations = _computedOptions.declaration.computeValue;
21897
+ var shouldPreserveConstEnums = _computedOptions.preserveConstEnums.computeValue;
21898
+ var isIncrementalCompilation = _computedOptions.incremental.computeValue;
21899
+ var getAreDeclarationMapsEnabled = _computedOptions.declarationMap.computeValue;
21900
+ var getAllowJSCompilerOption = _computedOptions.allowJs.computeValue;
21901
+ var getUseDefineForClassFields = _computedOptions.useDefineForClassFields.computeValue;
21904
21902
  function emitModuleKindIsNonNodeESM(moduleKind) {
21905
21903
  return moduleKind >= 5 /* ES2015 */ && moduleKind <= 99 /* ESNext */;
21906
21904
  }
@@ -45327,13 +45325,13 @@ function comparePatternKeys(a, b) {
45327
45325
  const bPatternIndex = b.indexOf("*");
45328
45326
  const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1;
45329
45327
  const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1;
45330
- if (baseLenA > baseLenB) return -1;
45331
- if (baseLenB > baseLenA) return 1;
45332
- if (aPatternIndex === -1) return 1;
45333
- if (bPatternIndex === -1) return -1;
45334
- if (a.length > b.length) return -1;
45335
- if (b.length > a.length) return 1;
45336
- return 0;
45328
+ if (baseLenA > baseLenB) return -1 /* LessThan */;
45329
+ if (baseLenB > baseLenA) return 1 /* GreaterThan */;
45330
+ if (aPatternIndex === -1) return 1 /* GreaterThan */;
45331
+ if (bPatternIndex === -1) return -1 /* LessThan */;
45332
+ if (a.length > b.length) return -1 /* LessThan */;
45333
+ if (b.length > a.length) return 1 /* GreaterThan */;
45334
+ return 0 /* EqualTo */;
45337
45335
  }
45338
45336
  function loadModuleFromImportsOrExports(extensions, state, cache, redirectedReference, moduleName, lookupTable, scope, isImports) {
45339
45337
  const loadModuleFromTargetImportOrExport = getLoadModuleFromTargetImportOrExport(extensions, state, cache, redirectedReference, moduleName, scope, isImports);
@@ -45948,7 +45946,7 @@ function resolveFromTypeRoot(moduleName, state) {
45948
45946
  }
45949
45947
  }
45950
45948
  function shouldAllowImportingTsExtension(compilerOptions, fromFileName) {
45951
- return !!compilerOptions.allowImportingTsExtensions || fromFileName && isDeclarationFileName(fromFileName);
45949
+ return !!compilerOptions.allowImportingTsExtensions || !!fromFileName && isDeclarationFileName(fromFileName);
45952
45950
  }
45953
45951
  function loadModuleFromGlobalCache(moduleName, projectName, compilerOptions, host, globalCache, packageJsonInfoCache) {
45954
45952
  const traceEnabled = isTraceEnabled(compilerOptions, host);
@@ -50473,6 +50471,7 @@ function createTypeChecker(host) {
50473
50471
  getBaseTypeOfLiteralType,
50474
50472
  getWidenedType,
50475
50473
  getWidenedLiteralType,
50474
+ fillMissingTypeArguments,
50476
50475
  getTypeFromTypeNode: (nodeIn) => {
50477
50476
  const node = getParseTreeNode(nodeIn, isTypeNode);
50478
50477
  return node ? getTypeFromTypeNode(node) : errorType;
@@ -77104,7 +77103,7 @@ function createTypeChecker(host) {
77104
77103
  return globalRegExpType;
77105
77104
  }
77106
77105
  function checkSpreadExpression(node, checkMode) {
77107
- if (languageVersion < 2 /* SpreadElements */) {
77106
+ if (languageVersion < LanguageFeatureMinimumTarget.SpreadElements) {
77108
77107
  checkExternalEmitHelpers(node, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */);
77109
77108
  }
77110
77109
  const arrayOrIterableType = checkExpression(node.expression, checkMode);
@@ -77138,7 +77137,7 @@ function createTypeChecker(host) {
77138
77137
  for (let i = 0; i < elementCount; i++) {
77139
77138
  const e = elements[i];
77140
77139
  if (e.kind === 230 /* SpreadElement */) {
77141
- if (languageVersion < 2 /* SpreadElements */) {
77140
+ if (languageVersion < LanguageFeatureMinimumTarget.SpreadElements) {
77142
77141
  checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */);
77143
77142
  }
77144
77143
  const spreadType = checkExpression(e.expression, checkMode, forceTuple);
@@ -77363,7 +77362,7 @@ function createTypeChecker(host) {
77363
77362
  addIntraExpressionInferenceSite(inferenceContext, inferenceNode, type);
77364
77363
  }
77365
77364
  } else if (memberDecl.kind === 305 /* SpreadAssignment */) {
77366
- if (languageVersion < 2 /* ObjectAssign */) {
77365
+ if (languageVersion < LanguageFeatureMinimumTarget.ObjectAssign) {
77367
77366
  checkExternalEmitHelpers(memberDecl, 2 /* Assign */);
77368
77367
  }
77369
77368
  if (propertiesArray.length > 0) {
@@ -78340,7 +78339,7 @@ function createTypeChecker(host) {
78340
78339
  const isAnyLike = isTypeAny(apparentType) || apparentType === silentNeverType;
78341
78340
  let prop;
78342
78341
  if (isPrivateIdentifier(right)) {
78343
- if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) {
78342
+ if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) {
78344
78343
  if (assignmentKind !== 0 /* None */) {
78345
78344
  checkExternalEmitHelpers(node, 1048576 /* ClassPrivateFieldSet */);
78346
78345
  }
@@ -80957,7 +80956,7 @@ function createTypeChecker(host) {
80957
80956
  }
80958
80957
  function checkTaggedTemplateExpression(node) {
80959
80958
  if (!checkGrammarTaggedTemplateChain(node)) checkGrammarTypeArguments(node, node.typeArguments);
80960
- if (languageVersion < 2 /* TaggedTemplates */) {
80959
+ if (languageVersion < LanguageFeatureMinimumTarget.TaggedTemplates) {
80961
80960
  checkExternalEmitHelpers(node, 262144 /* MakeTemplateObject */);
80962
80961
  }
80963
80962
  const signature = getResolvedSignature(node);
@@ -82669,7 +82668,7 @@ function createTypeChecker(host) {
82669
82668
  return silentNeverType;
82670
82669
  }
82671
82670
  if (isPrivateIdentifier(left)) {
82672
- if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) {
82671
+ if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) {
82673
82672
  checkExternalEmitHelpers(left, 2097152 /* ClassPrivateFieldIn */);
82674
82673
  }
82675
82674
  if (!getNodeLinks(left).resolvedSymbol && getContainingClass(left)) {
@@ -82730,7 +82729,7 @@ function createTypeChecker(host) {
82730
82729
  if (propertyIndex < properties.length - 1) {
82731
82730
  error2(property, Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);
82732
82731
  } else {
82733
- if (languageVersion < 5 /* ObjectSpreadRest */) {
82732
+ if (languageVersion < LanguageFeatureMinimumTarget.ObjectSpreadRest) {
82734
82733
  checkExternalEmitHelpers(property, 4 /* Rest */);
82735
82734
  }
82736
82735
  const nonRestNames = [];
@@ -82751,7 +82750,7 @@ function createTypeChecker(host) {
82751
82750
  }
82752
82751
  function checkArrayLiteralAssignment(node, sourceType, checkMode) {
82753
82752
  const elements = node.elements;
82754
- if (languageVersion < 2 /* DestructuringAssignment */ && compilerOptions.downlevelIteration) {
82753
+ if (languageVersion < LanguageFeatureMinimumTarget.DestructuringAssignment && compilerOptions.downlevelIteration) {
82755
82754
  checkExternalEmitHelpers(node, 512 /* Read */);
82756
82755
  }
82757
82756
  const possiblyOutOfBoundsType = checkIteratedTypeOrElementType(65 /* Destructuring */ | 128 /* PossiblyOutOfBounds */, sourceType, undefinedType, node) || errorType;
@@ -83525,10 +83524,10 @@ function createTypeChecker(host) {
83525
83524
  }
83526
83525
  const isAsync = (functionFlags & 2 /* Async */) !== 0;
83527
83526
  if (node.asteriskToken) {
83528
- if (isAsync && languageVersion < 5 /* AsyncGenerators */) {
83527
+ if (isAsync && languageVersion < LanguageFeatureMinimumTarget.AsyncGenerators) {
83529
83528
  checkExternalEmitHelpers(node, 26624 /* AsyncDelegatorIncludes */);
83530
83529
  }
83531
- if (!isAsync && languageVersion < 2 /* Generators */ && compilerOptions.downlevelIteration) {
83530
+ if (!isAsync && languageVersion < LanguageFeatureMinimumTarget.Generators && compilerOptions.downlevelIteration) {
83532
83531
  checkExternalEmitHelpers(node, 256 /* Values */);
83533
83532
  }
83534
83533
  }
@@ -84358,13 +84357,13 @@ function createTypeChecker(host) {
84358
84357
  }
84359
84358
  const functionFlags = getFunctionFlags(node);
84360
84359
  if (!(functionFlags & 4 /* Invalid */)) {
84361
- if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < 5 /* AsyncGenerators */) {
84360
+ if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < LanguageFeatureMinimumTarget.AsyncGenerators) {
84362
84361
  checkExternalEmitHelpers(node, 6144 /* AsyncGeneratorIncludes */);
84363
84362
  }
84364
- if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < 4 /* AsyncFunctions */) {
84363
+ if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < LanguageFeatureMinimumTarget.AsyncFunctions) {
84365
84364
  checkExternalEmitHelpers(node, 64 /* Awaiter */);
84366
84365
  }
84367
- if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < 2 /* Generators */) {
84366
+ if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < LanguageFeatureMinimumTarget.Generators) {
84368
84367
  checkExternalEmitHelpers(node, 128 /* Generator */);
84369
84368
  }
84370
84369
  }
@@ -84597,7 +84596,7 @@ function createTypeChecker(host) {
84597
84596
  }
84598
84597
  function setNodeLinksForPrivateIdentifierScope(node) {
84599
84598
  if (isPrivateIdentifier(node.name)) {
84600
- if (languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */ || !useDefineForClassFields) {
84599
+ if (languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators || !useDefineForClassFields) {
84601
84600
  for (let lexicalScope = getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = getEnclosingBlockScopeContainer(lexicalScope)) {
84602
84601
  getNodeLinks(lexicalScope).flags |= 1048576 /* ContainsClassWithPrivateIdentifiers */;
84603
84602
  }
@@ -85737,7 +85736,7 @@ function createTypeChecker(host) {
85737
85736
  if (node.kind === 169 /* Parameter */) {
85738
85737
  checkExternalEmitHelpers(firstDecorator, 32 /* Param */);
85739
85738
  }
85740
- } else if (languageVersion < 99 /* ClassAndClassElementDecorators */) {
85739
+ } else if (languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators) {
85741
85740
  checkExternalEmitHelpers(firstDecorator, 8 /* ESDecorateAndRunInitializers */);
85742
85741
  if (isClassDeclaration(node)) {
85743
85742
  if (!node.name) {
@@ -86403,7 +86402,7 @@ function createTypeChecker(host) {
86403
86402
  potentialUnusedRenamedBindingElementsInTypes.push(node);
86404
86403
  return;
86405
86404
  }
86406
- if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < 5 /* ObjectSpreadRest */) {
86405
+ if (isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < LanguageFeatureMinimumTarget.ObjectSpreadRest) {
86407
86406
  checkExternalEmitHelpers(node, 4 /* Rest */);
86408
86407
  }
86409
86408
  if (node.propertyName && node.propertyName.kind === 167 /* ComputedPropertyName */) {
@@ -86439,7 +86438,7 @@ function createTypeChecker(host) {
86439
86438
  }
86440
86439
  }
86441
86440
  if (isBindingPattern(node.name)) {
86442
- if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < 2 /* BindingPatterns */ && compilerOptions.downlevelIteration) {
86441
+ if (node.name.kind === 207 /* ArrayBindingPattern */ && languageVersion < LanguageFeatureMinimumTarget.BindingPatterns && compilerOptions.downlevelIteration) {
86443
86442
  checkExternalEmitHelpers(node, 512 /* Read */);
86444
86443
  }
86445
86444
  forEach(node.name.elements, checkSourceElement);
@@ -86593,7 +86592,7 @@ function createTypeChecker(host) {
86593
86592
  }
86594
86593
  function checkVariableDeclarationList(node) {
86595
86594
  const blockScopeKind = getCombinedNodeFlags(node) & 7 /* BlockScoped */;
86596
- if ((blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) && languageVersion < 99 /* UsingAndAwaitUsing */) {
86595
+ if ((blockScopeKind === 4 /* Using */ || blockScopeKind === 6 /* AwaitUsing */) && languageVersion < LanguageFeatureMinimumTarget.UsingAndAwaitUsing) {
86597
86596
  checkExternalEmitHelpers(node, 16777216 /* AddDisposableResourceAndDisposeResources */);
86598
86597
  }
86599
86598
  forEach(node.declarations, checkSourceElement);
@@ -86807,11 +86806,11 @@ function createTypeChecker(host) {
86807
86806
  grammarErrorOnNode(node.awaitModifier, Diagnostics.for_await_loops_cannot_be_used_inside_a_class_static_block);
86808
86807
  } else {
86809
86808
  const functionFlags = getFunctionFlags(container);
86810
- if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < 5 /* ForAwaitOf */) {
86809
+ if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < LanguageFeatureMinimumTarget.ForAwaitOf) {
86811
86810
  checkExternalEmitHelpers(node, 16384 /* ForAwaitOfIncludes */);
86812
86811
  }
86813
86812
  }
86814
- } else if (compilerOptions.downlevelIteration && languageVersion < 2 /* ForOf */) {
86813
+ } else if (compilerOptions.downlevelIteration && languageVersion < LanguageFeatureMinimumTarget.ForOf) {
86815
86814
  checkExternalEmitHelpers(node, 256 /* ForOfIncludes */);
86816
86815
  }
86817
86816
  if (node.initializer.kind === 261 /* VariableDeclarationList */) {
@@ -87852,12 +87851,12 @@ function createTypeChecker(host) {
87852
87851
  return true;
87853
87852
  }
87854
87853
  function getFirstTransformableStaticClassElement(node) {
87855
- const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < 99 /* ClassAndClassElementDecorators */ && classOrConstructorParameterIsDecorated(
87854
+ const willTransformStaticElementsOfDecoratedClass = !legacyDecorators && languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators && classOrConstructorParameterIsDecorated(
87856
87855
  /*useLegacyDecorators*/
87857
87856
  false,
87858
87857
  node
87859
87858
  );
87860
- const willTransformPrivateElementsOrClassStaticBlocks = languageVersion < 9 /* PrivateNamesAndClassStaticBlocks */ || languageVersion < 99 /* ClassAndClassElementDecorators */;
87859
+ const willTransformPrivateElementsOrClassStaticBlocks = languageVersion < LanguageFeatureMinimumTarget.PrivateNamesAndClassStaticBlocks || languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators;
87861
87860
  const willTransformInitializers = !emitStandardClassFields;
87862
87861
  if (willTransformStaticElementsOfDecoratedClass || willTransformPrivateElementsOrClassStaticBlocks) {
87863
87862
  for (const member of node.members) {
@@ -87884,7 +87883,7 @@ function createTypeChecker(host) {
87884
87883
  if (node.name) return;
87885
87884
  const parent2 = walkUpOuterExpressions(node);
87886
87885
  if (!isNamedEvaluationSource(parent2)) return;
87887
- const willTransformESDecorators = !legacyDecorators && languageVersion < 99 /* ClassAndClassElementDecorators */;
87886
+ const willTransformESDecorators = !legacyDecorators && languageVersion < LanguageFeatureMinimumTarget.ClassAndClassElementDecorators;
87888
87887
  let location;
87889
87888
  if (willTransformESDecorators && classOrConstructorParameterIsDecorated(
87890
87889
  /*useLegacyDecorators*/
@@ -87944,7 +87943,7 @@ function createTypeChecker(host) {
87944
87943
  const baseTypeNode = getEffectiveBaseTypeNode(node);
87945
87944
  if (baseTypeNode) {
87946
87945
  forEach(baseTypeNode.typeArguments, checkSourceElement);
87947
- if (languageVersion < 2 /* Classes */) {
87946
+ if (languageVersion < LanguageFeatureMinimumTarget.Classes) {
87948
87947
  checkExternalEmitHelpers(baseTypeNode.parent, 1 /* Extends */);
87949
87948
  }
87950
87949
  const extendsNode = getClassExtendsHeritageElement(node);
@@ -152656,8 +152655,10 @@ __export(ts_codefix_exports, {
152656
152655
  setJsonCompilerOptionValue: () => setJsonCompilerOptionValue,
152657
152656
  setJsonCompilerOptionValues: () => setJsonCompilerOptionValues,
152658
152657
  tryGetAutoImportableReferenceFromTypeNode: () => tryGetAutoImportableReferenceFromTypeNode,
152658
+ typeNodeToAutoImportableTypeNode: () => typeNodeToAutoImportableTypeNode,
152659
152659
  typePredicateToAutoImportableTypeNode: () => typePredicateToAutoImportableTypeNode,
152660
- typeToAutoImportableTypeNode: () => typeToAutoImportableTypeNode
152660
+ typeToAutoImportableTypeNode: () => typeToAutoImportableTypeNode,
152661
+ typeToMinimizedReferenceType: () => typeToMinimizedReferenceType
152661
152662
  });
152662
152663
 
152663
152664
  // src/services/codeFixProvider.ts
@@ -161033,7 +161034,7 @@ function withContext(context, typePrintMode, cb) {
161033
161034
  }
161034
161035
  function typeToTypeNode2(type, enclosingDeclaration, flags = 0 /* None */) {
161035
161036
  let isTruncated = false;
161036
- const result2 = typeToAutoImportableTypeNode(typeChecker, importAdder, type, enclosingDeclaration, scriptTarget, declarationEmitNodeBuilderFlags2 | flags, declarationEmitInternalNodeBuilderFlags2, {
161037
+ const minimizedTypeNode = typeToMinimizedReferenceType(typeChecker, type, enclosingDeclaration, declarationEmitNodeBuilderFlags2 | flags, declarationEmitInternalNodeBuilderFlags2, {
161037
161038
  moduleResolverHost: program,
161038
161039
  trackSymbol() {
161039
161040
  return true;
@@ -161042,6 +161043,10 @@ function withContext(context, typePrintMode, cb) {
161042
161043
  isTruncated = true;
161043
161044
  }
161044
161045
  });
161046
+ if (!minimizedTypeNode) {
161047
+ return void 0;
161048
+ }
161049
+ const result2 = typeNodeToAutoImportableTypeNode(minimizedTypeNode, importAdder, scriptTarget);
161045
161050
  return isTruncated ? factory.createKeywordTypeNode(133 /* AnyKeyword */) : result2;
161046
161051
  }
161047
161052
  function typePredicateToTypeNode(typePredicate, enclosingDeclaration, flags = 0 /* None */) {
@@ -162745,7 +162750,13 @@ function createTypeParameterName(index) {
162745
162750
  return 84 /* T */ + index <= 90 /* Z */ ? String.fromCharCode(84 /* T */ + index) : `T${index}`;
162746
162751
  }
162747
162752
  function typeToAutoImportableTypeNode(checker, importAdder, type, contextNode, scriptTarget, flags, internalFlags, tracker) {
162748
- let typeNode = checker.typeToTypeNode(type, contextNode, flags, internalFlags, tracker);
162753
+ const typeNode = checker.typeToTypeNode(type, contextNode, flags, internalFlags, tracker);
162754
+ if (!typeNode) {
162755
+ return void 0;
162756
+ }
162757
+ return typeNodeToAutoImportableTypeNode(typeNode, importAdder, scriptTarget);
162758
+ }
162759
+ function typeNodeToAutoImportableTypeNode(typeNode, importAdder, scriptTarget) {
162749
162760
  if (typeNode && isImportTypeNode(typeNode)) {
162750
162761
  const importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);
162751
162762
  if (importableReference) {
@@ -162755,6 +162766,42 @@ function typeToAutoImportableTypeNode(checker, importAdder, type, contextNode, s
162755
162766
  }
162756
162767
  return getSynthesizedDeepClone(typeNode);
162757
162768
  }
162769
+ function endOfRequiredTypeParameters(checker, type) {
162770
+ Debug.assert(type.typeArguments);
162771
+ const fullTypeArguments = type.typeArguments;
162772
+ const target = type.target;
162773
+ for (let cutoff = 0; cutoff < fullTypeArguments.length; cutoff++) {
162774
+ const typeArguments = fullTypeArguments.slice(0, cutoff);
162775
+ const filledIn = checker.fillMissingTypeArguments(
162776
+ typeArguments,
162777
+ target.typeParameters,
162778
+ cutoff,
162779
+ /*isJavaScriptImplicitAny*/
162780
+ false
162781
+ );
162782
+ if (filledIn.every((fill, i) => fill === fullTypeArguments[i])) {
162783
+ return cutoff;
162784
+ }
162785
+ }
162786
+ return fullTypeArguments.length;
162787
+ }
162788
+ function typeToMinimizedReferenceType(checker, type, contextNode, flags, internalFlags, tracker) {
162789
+ let typeNode = checker.typeToTypeNode(type, contextNode, flags, internalFlags, tracker);
162790
+ if (!typeNode) {
162791
+ return void 0;
162792
+ }
162793
+ if (isTypeReferenceNode(typeNode)) {
162794
+ const genericType = type;
162795
+ if (genericType.typeArguments && typeNode.typeArguments) {
162796
+ const cutoff = endOfRequiredTypeParameters(checker, genericType);
162797
+ if (cutoff < typeNode.typeArguments.length) {
162798
+ const newTypeArguments = factory.createNodeArray(typeNode.typeArguments.slice(0, cutoff));
162799
+ typeNode = factory.updateTypeReferenceNode(typeNode, typeNode.typeName, newTypeArguments);
162800
+ }
162801
+ }
162802
+ }
162803
+ return typeNode;
162804
+ }
162758
162805
  function typePredicateToAutoImportableTypeNode(checker, importAdder, typePredicate, contextNode, scriptTarget, flags, internalFlags, tracker) {
162759
162806
  let typePredicateNode = checker.typePredicateToTypePredicateNode(typePredicate, contextNode, flags, internalFlags, tracker);
162760
162807
  if ((typePredicateNode == null ? void 0 : typePredicateNode.type) && isImportTypeNode(typePredicateNode.type)) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.7.0-dev.20240915",
5
+ "version": "5.7.0-dev.20240917",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -116,5 +116,5 @@
116
116
  "node": "20.1.0",
117
117
  "npm": "8.19.4"
118
118
  },
119
- "gitHead": "89e004f632323a276b67649e118e78f39a7dc429"
119
+ "gitHead": "8230bc66a7eb4b88cfb6cdaa4ea8324808b39a07"
120
120
  }