typescript 5.4.0-dev.20231122 → 5.4.0-dev.20231124

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.20231122`;
21
+ var version = `${versionMajorMinor}.0-dev.20231124`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -66226,10 +66226,10 @@ function createTypeChecker(host) {
66226
66226
  if (isMatchingConstructorReference(right)) {
66227
66227
  return narrowTypeByConstructor(type, operator, left, assumeTrue);
66228
66228
  }
66229
- if (isBooleanLiteral(right)) {
66229
+ if (isBooleanLiteral(right) && !isAccessExpression(left)) {
66230
66230
  return narrowTypeByBooleanComparison(type, left, right, operator, assumeTrue);
66231
66231
  }
66232
- if (isBooleanLiteral(left)) {
66232
+ if (isBooleanLiteral(left) && !isAccessExpression(right)) {
66233
66233
  return narrowTypeByBooleanComparison(type, right, left, operator, assumeTrue);
66234
66234
  }
66235
66235
  break;
package/lib/tsserver.js CHANGED
@@ -2331,7 +2331,7 @@ module.exports = __toCommonJS(server_exports);
2331
2331
 
2332
2332
  // src/compiler/corePublic.ts
2333
2333
  var versionMajorMinor = "5.4";
2334
- var version = `${versionMajorMinor}.0-dev.20231122`;
2334
+ var version = `${versionMajorMinor}.0-dev.20231124`;
2335
2335
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2336
2336
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2337
2337
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -70952,10 +70952,10 @@ function createTypeChecker(host) {
70952
70952
  if (isMatchingConstructorReference(right)) {
70953
70953
  return narrowTypeByConstructor(type, operator, left, assumeTrue);
70954
70954
  }
70955
- if (isBooleanLiteral(right)) {
70955
+ if (isBooleanLiteral(right) && !isAccessExpression(left)) {
70956
70956
  return narrowTypeByBooleanComparison(type, left, right, operator, assumeTrue);
70957
70957
  }
70958
- if (isBooleanLiteral(left)) {
70958
+ if (isBooleanLiteral(left) && !isAccessExpression(right)) {
70959
70959
  return narrowTypeByBooleanComparison(type, right, left, operator, assumeTrue);
70960
70960
  }
70961
70961
  break;
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.20231122`;
38
+ version = `${versionMajorMinor}.0-dev.20231124`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -68716,10 +68716,10 @@ ${lanes.join("\n")}
68716
68716
  if (isMatchingConstructorReference(right)) {
68717
68717
  return narrowTypeByConstructor(type, operator, left, assumeTrue);
68718
68718
  }
68719
- if (isBooleanLiteral(right)) {
68719
+ if (isBooleanLiteral(right) && !isAccessExpression(left)) {
68720
68720
  return narrowTypeByBooleanComparison(type, left, right, operator, assumeTrue);
68721
68721
  }
68722
- if (isBooleanLiteral(left)) {
68722
+ if (isBooleanLiteral(left) && !isAccessExpression(right)) {
68723
68723
  return narrowTypeByBooleanComparison(type, right, left, operator, assumeTrue);
68724
68724
  }
68725
68725
  break;
@@ -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.20231122`;
57
+ var version = `${versionMajorMinor}.0-dev.20231124`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
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.20231122",
5
+ "version": "5.4.0-dev.20231124",
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": "20.1.0",
115
115
  "npm": "8.19.4"
116
116
  },
117
- "gitHead": "b9ae79192cc04c4231c76157fa35d566fad0026e"
117
+ "gitHead": "d4fbc9b57d9aa7d02faac9b1e9bb7b37c687f6e9"
118
118
  }