typescript 5.4.0-dev.20240127 → 5.4.0-dev.20240129

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.4";
21
- var version = `${versionMajorMinor}.0-dev.20240127`;
21
+ var version = `${versionMajorMinor}.0-dev.20240129`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -3635,6 +3635,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
3635
3635
  TypeFlags2[TypeFlags2["NonPrimitive"] = 67108864] = "NonPrimitive";
3636
3636
  TypeFlags2[TypeFlags2["TemplateLiteral"] = 134217728] = "TemplateLiteral";
3637
3637
  TypeFlags2[TypeFlags2["StringMapping"] = 268435456] = "StringMapping";
3638
+ TypeFlags2[TypeFlags2["Reserved1"] = 536870912] = "Reserved1";
3638
3639
  TypeFlags2[TypeFlags2["AnyOrUnknown"] = 3] = "AnyOrUnknown";
3639
3640
  TypeFlags2[TypeFlags2["Nullable"] = 98304] = "Nullable";
3640
3641
  TypeFlags2[TypeFlags2["Literal"] = 2944] = "Literal";
@@ -3672,7 +3673,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
3672
3673
  TypeFlags2[TypeFlags2["IncludesWildcard"] = 8388608 /* IndexedAccess */] = "IncludesWildcard";
3673
3674
  TypeFlags2[TypeFlags2["IncludesEmptyObject"] = 16777216 /* Conditional */] = "IncludesEmptyObject";
3674
3675
  TypeFlags2[TypeFlags2["IncludesInstantiable"] = 33554432 /* Substitution */] = "IncludesInstantiable";
3675
- TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 268435456 /* StringMapping */] = "IncludesConstrainedTypeVariable";
3676
+ TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 536870912 /* Reserved1 */] = "IncludesConstrainedTypeVariable";
3676
3677
  TypeFlags2[TypeFlags2["NotPrimitiveUnion"] = 36323331] = "NotPrimitiveUnion";
3677
3678
  return TypeFlags2;
3678
3679
  })(TypeFlags || {});
@@ -57482,7 +57483,7 @@ function createTypeChecker(host) {
57482
57483
  if (flags & 465829888 /* Instantiable */)
57483
57484
  includes |= 33554432 /* IncludesInstantiable */;
57484
57485
  if (flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */)
57485
- includes |= 268435456 /* IncludesConstrainedTypeVariable */;
57486
+ includes |= 536870912 /* IncludesConstrainedTypeVariable */;
57486
57487
  if (type === wildcardType)
57487
57488
  includes |= 8388608 /* IncludesWildcard */;
57488
57489
  if (!strictNullChecks && flags & 98304 /* Nullable */) {
@@ -57575,18 +57576,21 @@ function createTypeChecker(host) {
57575
57576
  }
57576
57577
  }
57577
57578
  function removeStringLiteralsMatchedByTemplateLiterals(types) {
57578
- const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t));
57579
+ const templates = filter(types, isPatternLiteralType);
57579
57580
  if (templates.length) {
57580
57581
  let i = types.length;
57581
57582
  while (i > 0) {
57582
57583
  i--;
57583
57584
  const t = types[i];
57584
- if (t.flags & 128 /* StringLiteral */ && some(templates, (template) => isTypeMatchedByTemplateLiteralType(t, template))) {
57585
+ if (t.flags & 128 /* StringLiteral */ && some(templates, (template) => isTypeMatchedByTemplateLiteralOrStringMapping(t, template))) {
57585
57586
  orderedRemoveItemAt(types, i);
57586
57587
  }
57587
57588
  }
57588
57589
  }
57589
57590
  }
57591
+ function isTypeMatchedByTemplateLiteralOrStringMapping(type, template) {
57592
+ return template.flags & 134217728 /* TemplateLiteral */ ? isTypeMatchedByTemplateLiteralType(type, template) : isMemberOfStringMapping(type, template);
57593
+ }
57590
57594
  function removeConstrainedTypeVariables(types) {
57591
57595
  const typeVariables = [];
57592
57596
  for (const type of types) {
@@ -57684,10 +57688,10 @@ function createTypeChecker(host) {
57684
57688
  if (includes & (32 /* Enum */ | 2944 /* Literal */ | 8192 /* UniqueESSymbol */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || includes & 16384 /* Void */ && includes & 32768 /* Undefined */) {
57685
57689
  removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & 2 /* Subtype */));
57686
57690
  }
57687
- if (includes & 128 /* StringLiteral */ && includes & 134217728 /* TemplateLiteral */) {
57691
+ if (includes & 128 /* StringLiteral */ && includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) {
57688
57692
  removeStringLiteralsMatchedByTemplateLiterals(typeSet);
57689
57693
  }
57690
- if (includes & 268435456 /* IncludesConstrainedTypeVariable */) {
57694
+ if (includes & 536870912 /* IncludesConstrainedTypeVariable */) {
57691
57695
  removeConstrainedTypeVariables(typeSet);
57692
57696
  }
57693
57697
  if (unionReduction === 2 /* Subtype */) {
@@ -57851,7 +57855,7 @@ function createTypeChecker(host) {
57851
57855
  while (i > 0) {
57852
57856
  i--;
57853
57857
  const t = types[i];
57854
- if (!(t.flags & 134217728 /* TemplateLiteral */))
57858
+ if (!(t.flags & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)))
57855
57859
  continue;
57856
57860
  for (const t2 of literals) {
57857
57861
  if (isTypeSubtypeOf(t2, t)) {
@@ -57925,7 +57929,7 @@ function createTypeChecker(host) {
57925
57929
  if (strictNullChecks && includes & 98304 /* Nullable */ && includes & (524288 /* Object */ | 67108864 /* NonPrimitive */ | 16777216 /* IncludesEmptyObject */) || includes & 67108864 /* NonPrimitive */ && includes & (469892092 /* DisjointDomains */ & ~67108864 /* NonPrimitive */) || includes & 402653316 /* StringLike */ && includes & (469892092 /* DisjointDomains */ & ~402653316 /* StringLike */) || includes & 296 /* NumberLike */ && includes & (469892092 /* DisjointDomains */ & ~296 /* NumberLike */) || includes & 2112 /* BigIntLike */ && includes & (469892092 /* DisjointDomains */ & ~2112 /* BigIntLike */) || includes & 12288 /* ESSymbolLike */ && includes & (469892092 /* DisjointDomains */ & ~12288 /* ESSymbolLike */) || includes & 49152 /* VoidLike */ && includes & (469892092 /* DisjointDomains */ & ~49152 /* VoidLike */)) {
57926
57930
  return neverType;
57927
57931
  }
57928
- if (includes & 134217728 /* TemplateLiteral */ && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) {
57932
+ if (includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) {
57929
57933
  return neverType;
57930
57934
  }
57931
57935
  if (includes & 1 /* Any */) {
package/lib/tsserver.js CHANGED
@@ -2340,7 +2340,7 @@ module.exports = __toCommonJS(server_exports);
2340
2340
 
2341
2341
  // src/compiler/corePublic.ts
2342
2342
  var versionMajorMinor = "5.4";
2343
- var version = `${versionMajorMinor}.0-dev.20240127`;
2343
+ var version = `${versionMajorMinor}.0-dev.20240129`;
2344
2344
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2345
2345
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2346
2346
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -6659,6 +6659,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
6659
6659
  TypeFlags2[TypeFlags2["NonPrimitive"] = 67108864] = "NonPrimitive";
6660
6660
  TypeFlags2[TypeFlags2["TemplateLiteral"] = 134217728] = "TemplateLiteral";
6661
6661
  TypeFlags2[TypeFlags2["StringMapping"] = 268435456] = "StringMapping";
6662
+ TypeFlags2[TypeFlags2["Reserved1"] = 536870912] = "Reserved1";
6662
6663
  TypeFlags2[TypeFlags2["AnyOrUnknown"] = 3] = "AnyOrUnknown";
6663
6664
  TypeFlags2[TypeFlags2["Nullable"] = 98304] = "Nullable";
6664
6665
  TypeFlags2[TypeFlags2["Literal"] = 2944] = "Literal";
@@ -6696,7 +6697,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
6696
6697
  TypeFlags2[TypeFlags2["IncludesWildcard"] = 8388608 /* IndexedAccess */] = "IncludesWildcard";
6697
6698
  TypeFlags2[TypeFlags2["IncludesEmptyObject"] = 16777216 /* Conditional */] = "IncludesEmptyObject";
6698
6699
  TypeFlags2[TypeFlags2["IncludesInstantiable"] = 33554432 /* Substitution */] = "IncludesInstantiable";
6699
- TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 268435456 /* StringMapping */] = "IncludesConstrainedTypeVariable";
6700
+ TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 536870912 /* Reserved1 */] = "IncludesConstrainedTypeVariable";
6700
6701
  TypeFlags2[TypeFlags2["NotPrimitiveUnion"] = 36323331] = "NotPrimitiveUnion";
6701
6702
  return TypeFlags2;
6702
6703
  })(TypeFlags || {});
@@ -62217,7 +62218,7 @@ function createTypeChecker(host) {
62217
62218
  if (flags & 465829888 /* Instantiable */)
62218
62219
  includes |= 33554432 /* IncludesInstantiable */;
62219
62220
  if (flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */)
62220
- includes |= 268435456 /* IncludesConstrainedTypeVariable */;
62221
+ includes |= 536870912 /* IncludesConstrainedTypeVariable */;
62221
62222
  if (type === wildcardType)
62222
62223
  includes |= 8388608 /* IncludesWildcard */;
62223
62224
  if (!strictNullChecks && flags & 98304 /* Nullable */) {
@@ -62310,18 +62311,21 @@ function createTypeChecker(host) {
62310
62311
  }
62311
62312
  }
62312
62313
  function removeStringLiteralsMatchedByTemplateLiterals(types) {
62313
- const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t));
62314
+ const templates = filter(types, isPatternLiteralType);
62314
62315
  if (templates.length) {
62315
62316
  let i = types.length;
62316
62317
  while (i > 0) {
62317
62318
  i--;
62318
62319
  const t = types[i];
62319
- if (t.flags & 128 /* StringLiteral */ && some(templates, (template) => isTypeMatchedByTemplateLiteralType(t, template))) {
62320
+ if (t.flags & 128 /* StringLiteral */ && some(templates, (template) => isTypeMatchedByTemplateLiteralOrStringMapping(t, template))) {
62320
62321
  orderedRemoveItemAt(types, i);
62321
62322
  }
62322
62323
  }
62323
62324
  }
62324
62325
  }
62326
+ function isTypeMatchedByTemplateLiteralOrStringMapping(type, template) {
62327
+ return template.flags & 134217728 /* TemplateLiteral */ ? isTypeMatchedByTemplateLiteralType(type, template) : isMemberOfStringMapping(type, template);
62328
+ }
62325
62329
  function removeConstrainedTypeVariables(types) {
62326
62330
  const typeVariables = [];
62327
62331
  for (const type of types) {
@@ -62419,10 +62423,10 @@ function createTypeChecker(host) {
62419
62423
  if (includes & (32 /* Enum */ | 2944 /* Literal */ | 8192 /* UniqueESSymbol */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || includes & 16384 /* Void */ && includes & 32768 /* Undefined */) {
62420
62424
  removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & 2 /* Subtype */));
62421
62425
  }
62422
- if (includes & 128 /* StringLiteral */ && includes & 134217728 /* TemplateLiteral */) {
62426
+ if (includes & 128 /* StringLiteral */ && includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) {
62423
62427
  removeStringLiteralsMatchedByTemplateLiterals(typeSet);
62424
62428
  }
62425
- if (includes & 268435456 /* IncludesConstrainedTypeVariable */) {
62429
+ if (includes & 536870912 /* IncludesConstrainedTypeVariable */) {
62426
62430
  removeConstrainedTypeVariables(typeSet);
62427
62431
  }
62428
62432
  if (unionReduction === 2 /* Subtype */) {
@@ -62586,7 +62590,7 @@ function createTypeChecker(host) {
62586
62590
  while (i > 0) {
62587
62591
  i--;
62588
62592
  const t = types[i];
62589
- if (!(t.flags & 134217728 /* TemplateLiteral */))
62593
+ if (!(t.flags & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)))
62590
62594
  continue;
62591
62595
  for (const t2 of literals) {
62592
62596
  if (isTypeSubtypeOf(t2, t)) {
@@ -62660,7 +62664,7 @@ function createTypeChecker(host) {
62660
62664
  if (strictNullChecks && includes & 98304 /* Nullable */ && includes & (524288 /* Object */ | 67108864 /* NonPrimitive */ | 16777216 /* IncludesEmptyObject */) || includes & 67108864 /* NonPrimitive */ && includes & (469892092 /* DisjointDomains */ & ~67108864 /* NonPrimitive */) || includes & 402653316 /* StringLike */ && includes & (469892092 /* DisjointDomains */ & ~402653316 /* StringLike */) || includes & 296 /* NumberLike */ && includes & (469892092 /* DisjointDomains */ & ~296 /* NumberLike */) || includes & 2112 /* BigIntLike */ && includes & (469892092 /* DisjointDomains */ & ~2112 /* BigIntLike */) || includes & 12288 /* ESSymbolLike */ && includes & (469892092 /* DisjointDomains */ & ~12288 /* ESSymbolLike */) || includes & 49152 /* VoidLike */ && includes & (469892092 /* DisjointDomains */ & ~49152 /* VoidLike */)) {
62661
62665
  return neverType;
62662
62666
  }
62663
- if (includes & 134217728 /* TemplateLiteral */ && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) {
62667
+ if (includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) {
62664
62668
  return neverType;
62665
62669
  }
62666
62670
  if (includes & 1 /* Any */) {
package/lib/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.4";
38
- version = `${versionMajorMinor}.0-dev.20240127`;
38
+ version = `${versionMajorMinor}.0-dev.20240129`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -4412,6 +4412,7 @@ ${lanes.join("\n")}
4412
4412
  TypeFlags2[TypeFlags2["NonPrimitive"] = 67108864] = "NonPrimitive";
4413
4413
  TypeFlags2[TypeFlags2["TemplateLiteral"] = 134217728] = "TemplateLiteral";
4414
4414
  TypeFlags2[TypeFlags2["StringMapping"] = 268435456] = "StringMapping";
4415
+ TypeFlags2[TypeFlags2["Reserved1"] = 536870912] = "Reserved1";
4415
4416
  TypeFlags2[TypeFlags2["AnyOrUnknown"] = 3] = "AnyOrUnknown";
4416
4417
  TypeFlags2[TypeFlags2["Nullable"] = 98304] = "Nullable";
4417
4418
  TypeFlags2[TypeFlags2["Literal"] = 2944] = "Literal";
@@ -4449,7 +4450,7 @@ ${lanes.join("\n")}
4449
4450
  TypeFlags2[TypeFlags2["IncludesWildcard"] = 8388608 /* IndexedAccess */] = "IncludesWildcard";
4450
4451
  TypeFlags2[TypeFlags2["IncludesEmptyObject"] = 16777216 /* Conditional */] = "IncludesEmptyObject";
4451
4452
  TypeFlags2[TypeFlags2["IncludesInstantiable"] = 33554432 /* Substitution */] = "IncludesInstantiable";
4452
- TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 268435456 /* StringMapping */] = "IncludesConstrainedTypeVariable";
4453
+ TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 536870912 /* Reserved1 */] = "IncludesConstrainedTypeVariable";
4453
4454
  TypeFlags2[TypeFlags2["NotPrimitiveUnion"] = 36323331] = "NotPrimitiveUnion";
4454
4455
  return TypeFlags2;
4455
4456
  })(TypeFlags || {});
@@ -59971,7 +59972,7 @@ ${lanes.join("\n")}
59971
59972
  if (flags & 465829888 /* Instantiable */)
59972
59973
  includes |= 33554432 /* IncludesInstantiable */;
59973
59974
  if (flags & 2097152 /* Intersection */ && getObjectFlags(type) & 67108864 /* IsConstrainedTypeVariable */)
59974
- includes |= 268435456 /* IncludesConstrainedTypeVariable */;
59975
+ includes |= 536870912 /* IncludesConstrainedTypeVariable */;
59975
59976
  if (type === wildcardType)
59976
59977
  includes |= 8388608 /* IncludesWildcard */;
59977
59978
  if (!strictNullChecks && flags & 98304 /* Nullable */) {
@@ -60064,18 +60065,21 @@ ${lanes.join("\n")}
60064
60065
  }
60065
60066
  }
60066
60067
  function removeStringLiteralsMatchedByTemplateLiterals(types) {
60067
- const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t));
60068
+ const templates = filter(types, isPatternLiteralType);
60068
60069
  if (templates.length) {
60069
60070
  let i = types.length;
60070
60071
  while (i > 0) {
60071
60072
  i--;
60072
60073
  const t = types[i];
60073
- if (t.flags & 128 /* StringLiteral */ && some(templates, (template) => isTypeMatchedByTemplateLiteralType(t, template))) {
60074
+ if (t.flags & 128 /* StringLiteral */ && some(templates, (template) => isTypeMatchedByTemplateLiteralOrStringMapping(t, template))) {
60074
60075
  orderedRemoveItemAt(types, i);
60075
60076
  }
60076
60077
  }
60077
60078
  }
60078
60079
  }
60080
+ function isTypeMatchedByTemplateLiteralOrStringMapping(type, template) {
60081
+ return template.flags & 134217728 /* TemplateLiteral */ ? isTypeMatchedByTemplateLiteralType(type, template) : isMemberOfStringMapping(type, template);
60082
+ }
60079
60083
  function removeConstrainedTypeVariables(types) {
60080
60084
  const typeVariables = [];
60081
60085
  for (const type of types) {
@@ -60173,10 +60177,10 @@ ${lanes.join("\n")}
60173
60177
  if (includes & (32 /* Enum */ | 2944 /* Literal */ | 8192 /* UniqueESSymbol */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || includes & 16384 /* Void */ && includes & 32768 /* Undefined */) {
60174
60178
  removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & 2 /* Subtype */));
60175
60179
  }
60176
- if (includes & 128 /* StringLiteral */ && includes & 134217728 /* TemplateLiteral */) {
60180
+ if (includes & 128 /* StringLiteral */ && includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) {
60177
60181
  removeStringLiteralsMatchedByTemplateLiterals(typeSet);
60178
60182
  }
60179
- if (includes & 268435456 /* IncludesConstrainedTypeVariable */) {
60183
+ if (includes & 536870912 /* IncludesConstrainedTypeVariable */) {
60180
60184
  removeConstrainedTypeVariables(typeSet);
60181
60185
  }
60182
60186
  if (unionReduction === 2 /* Subtype */) {
@@ -60340,7 +60344,7 @@ ${lanes.join("\n")}
60340
60344
  while (i > 0) {
60341
60345
  i--;
60342
60346
  const t = types[i];
60343
- if (!(t.flags & 134217728 /* TemplateLiteral */))
60347
+ if (!(t.flags & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)))
60344
60348
  continue;
60345
60349
  for (const t2 of literals) {
60346
60350
  if (isTypeSubtypeOf(t2, t)) {
@@ -60414,7 +60418,7 @@ ${lanes.join("\n")}
60414
60418
  if (strictNullChecks && includes & 98304 /* Nullable */ && includes & (524288 /* Object */ | 67108864 /* NonPrimitive */ | 16777216 /* IncludesEmptyObject */) || includes & 67108864 /* NonPrimitive */ && includes & (469892092 /* DisjointDomains */ & ~67108864 /* NonPrimitive */) || includes & 402653316 /* StringLike */ && includes & (469892092 /* DisjointDomains */ & ~402653316 /* StringLike */) || includes & 296 /* NumberLike */ && includes & (469892092 /* DisjointDomains */ & ~296 /* NumberLike */) || includes & 2112 /* BigIntLike */ && includes & (469892092 /* DisjointDomains */ & ~2112 /* BigIntLike */) || includes & 12288 /* ESSymbolLike */ && includes & (469892092 /* DisjointDomains */ & ~12288 /* ESSymbolLike */) || includes & 49152 /* VoidLike */ && includes & (469892092 /* DisjointDomains */ & ~49152 /* VoidLike */)) {
60415
60419
  return neverType;
60416
60420
  }
60417
- if (includes & 134217728 /* TemplateLiteral */ && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) {
60421
+ if (includes & (134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) {
60418
60422
  return neverType;
60419
60423
  }
60420
60424
  if (includes & 1 /* Any */) {
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.4";
57
- var version = `${versionMajorMinor}.0-dev.20240127`;
57
+ var version = `${versionMajorMinor}.0-dev.20240129`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
@@ -3069,6 +3069,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
3069
3069
  TypeFlags2[TypeFlags2["NonPrimitive"] = 67108864] = "NonPrimitive";
3070
3070
  TypeFlags2[TypeFlags2["TemplateLiteral"] = 134217728] = "TemplateLiteral";
3071
3071
  TypeFlags2[TypeFlags2["StringMapping"] = 268435456] = "StringMapping";
3072
+ TypeFlags2[TypeFlags2["Reserved1"] = 536870912] = "Reserved1";
3072
3073
  TypeFlags2[TypeFlags2["AnyOrUnknown"] = 3] = "AnyOrUnknown";
3073
3074
  TypeFlags2[TypeFlags2["Nullable"] = 98304] = "Nullable";
3074
3075
  TypeFlags2[TypeFlags2["Literal"] = 2944] = "Literal";
@@ -3106,7 +3107,7 @@ var TypeFlags = /* @__PURE__ */ ((TypeFlags2) => {
3106
3107
  TypeFlags2[TypeFlags2["IncludesWildcard"] = 8388608 /* IndexedAccess */] = "IncludesWildcard";
3107
3108
  TypeFlags2[TypeFlags2["IncludesEmptyObject"] = 16777216 /* Conditional */] = "IncludesEmptyObject";
3108
3109
  TypeFlags2[TypeFlags2["IncludesInstantiable"] = 33554432 /* Substitution */] = "IncludesInstantiable";
3109
- TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 268435456 /* StringMapping */] = "IncludesConstrainedTypeVariable";
3110
+ TypeFlags2[TypeFlags2["IncludesConstrainedTypeVariable"] = 536870912 /* Reserved1 */] = "IncludesConstrainedTypeVariable";
3110
3111
  TypeFlags2[TypeFlags2["NotPrimitiveUnion"] = 36323331] = "NotPrimitiveUnion";
3111
3112
  return TypeFlags2;
3112
3113
  })(TypeFlags || {});
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.4.0-dev.20240127",
5
+ "version": "5.4.0-dev.20240129",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -113,5 +113,5 @@
113
113
  "node": "20.1.0",
114
114
  "npm": "8.19.4"
115
115
  },
116
- "gitHead": "ddf923e62574df7b3af217eba1398442226a83d2"
116
+ "gitHead": "5d08694c06b96637462390539ea7af8490524e58"
117
117
  }