@typescript-deploys/pr-build 5.1.0-pr-53413-14 → 5.1.0-pr-53406-15

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
@@ -55804,7 +55804,7 @@ function createTypeChecker(host) {
55804
55804
  }
55805
55805
  }
55806
55806
  function removeStringLiteralsMatchedByTemplateLiterals(types) {
55807
- const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t));
55807
+ const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t) && !some(t.types, (t2) => !!(t2.flags & 2097152 /* Intersection */)));
55808
55808
  if (templates.length) {
55809
55809
  let i = types.length;
55810
55810
  while (i > 0) {
package/lib/tsserver.js CHANGED
@@ -60431,7 +60431,7 @@ function createTypeChecker(host) {
60431
60431
  }
60432
60432
  }
60433
60433
  function removeStringLiteralsMatchedByTemplateLiterals(types) {
60434
- const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t));
60434
+ const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t) && !some(t.types, (t2) => !!(t2.flags & 2097152 /* Intersection */)));
60435
60435
  if (templates.length) {
60436
60436
  let i = types.length;
60437
60437
  while (i > 0) {
@@ -128990,6 +128990,7 @@ var typeKeywords = [
128990
128990
  147 /* ReadonlyKeyword */,
128991
128991
  153 /* StringKeyword */,
128992
128992
  154 /* SymbolKeyword */,
128993
+ 113 /* TypeOfKeyword */,
128993
128994
  111 /* TrueKeyword */,
128994
128995
  115 /* VoidKeyword */,
128995
128996
  156 /* UndefinedKeyword */,
@@ -58239,7 +58239,7 @@ ${lanes.join("\n")}
58239
58239
  }
58240
58240
  }
58241
58241
  function removeStringLiteralsMatchedByTemplateLiterals(types) {
58242
- const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t));
58242
+ const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t) && !some(t.types, (t2) => !!(t2.flags & 2097152 /* Intersection */)));
58243
58243
  if (templates.length) {
58244
58244
  let i = types.length;
58245
58245
  while (i > 0) {
@@ -128660,6 +128660,7 @@ ${lanes.join("\n")}
128660
128660
  147 /* ReadonlyKeyword */,
128661
128661
  153 /* StringKeyword */,
128662
128662
  154 /* SymbolKeyword */,
128663
+ 113 /* TypeOfKeyword */,
128663
128664
  111 /* TrueKeyword */,
128664
128665
  115 /* VoidKeyword */,
128665
128666
  156 /* UndefinedKeyword */,
package/lib/typescript.js CHANGED
@@ -58239,7 +58239,7 @@ ${lanes.join("\n")}
58239
58239
  }
58240
58240
  }
58241
58241
  function removeStringLiteralsMatchedByTemplateLiterals(types) {
58242
- const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t));
58242
+ const templates = filter(types, (t) => !!(t.flags & 134217728 /* TemplateLiteral */) && isPatternLiteralType(t) && !some(t.types, (t2) => !!(t2.flags & 2097152 /* Intersection */)));
58243
58243
  if (templates.length) {
58244
58244
  let i = types.length;
58245
58245
  while (i > 0) {
@@ -128674,6 +128674,7 @@ ${lanes.join("\n")}
128674
128674
  147 /* ReadonlyKeyword */,
128675
128675
  153 /* StringKeyword */,
128676
128676
  154 /* SymbolKeyword */,
128677
+ 113 /* TypeOfKeyword */,
128677
128678
  111 /* TrueKeyword */,
128678
128679
  115 /* VoidKeyword */,
128679
128680
  156 /* UndefinedKeyword */,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typescript-deploys/pr-build",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "5.1.0-pr-53413-14",
5
+ "version": "5.1.0-pr-53406-15",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -114,5 +114,5 @@
114
114
  "node": "14.21.1",
115
115
  "npm": "8.19.3"
116
116
  },
117
- "gitHead": "21b75b523ae7e5e9f94dedc80a07b56a381fafaf"
117
+ "gitHead": "37d8ce9fa5f3be59c6d3b4bf3aae3098b0e1f190"
118
118
  }