typescript 4.9.0-dev.20220913 → 4.9.0-dev.20220914

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
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.9";
72
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220913");
72
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220914");
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -25747,6 +25747,7 @@ var ts;
25747
25747
  _a[338] = forEachChildInJSDocTag,
25748
25748
  _a[339] = forEachChildInJSDocTag,
25749
25749
  _a[334] = forEachChildInJSDocTag,
25750
+ _a[340] = forEachChildInJSDocTag,
25750
25751
  _a[353] = forEachChildInPartiallyEmittedExpression,
25751
25752
  _a);
25752
25753
  function forEachChildInCallOrConstructSignature(node, cbNode, cbNodes) {
@@ -60342,7 +60343,7 @@ var ts;
60342
60343
  var narrowedPropType = narrowType(propType);
60343
60344
  return filterType(type, function (t) {
60344
60345
  var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
60345
- return !(narrowedPropType.flags & 131072) && areTypesComparable(narrowedPropType, discriminantType);
60346
+ return !(discriminantType.flags & 131072) && !(narrowedPropType.flags & 131072) && areTypesComparable(narrowedPropType, discriminantType);
60346
60347
  });
60347
60348
  }
60348
60349
  function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
package/lib/tsserver.js CHANGED
@@ -109,7 +109,7 @@ var ts;
109
109
  // The following is baselined as a literal template type without intervention
110
110
  /** The version of the TypeScript compiler release */
111
111
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
112
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220913");
112
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220914");
113
113
  /* @internal */
114
114
  var Comparison;
115
115
  (function (Comparison) {
@@ -31828,6 +31828,7 @@ var ts;
31828
31828
  _a[338 /* SyntaxKind.JSDocProtectedTag */] = forEachChildInJSDocTag,
31829
31829
  _a[339 /* SyntaxKind.JSDocReadonlyTag */] = forEachChildInJSDocTag,
31830
31830
  _a[334 /* SyntaxKind.JSDocDeprecatedTag */] = forEachChildInJSDocTag,
31831
+ _a[340 /* SyntaxKind.JSDocOverrideTag */] = forEachChildInJSDocTag,
31831
31832
  _a[353 /* SyntaxKind.PartiallyEmittedExpression */] = forEachChildInPartiallyEmittedExpression,
31832
31833
  _a);
31833
31834
  // shared
@@ -72123,7 +72124,7 @@ var ts;
72123
72124
  var narrowedPropType = narrowType(propType);
72124
72125
  return filterType(type, function (t) {
72125
72126
  var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
72126
- return !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
72127
+ return !(discriminantType.flags & 131072 /* TypeFlags.Never */) && !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
72127
72128
  });
72128
72129
  }
72129
72130
  function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
@@ -142351,7 +142352,7 @@ var ts;
142351
142352
  }
142352
142353
  var parent = node.parent;
142353
142354
  var typeChecker = program.getTypeChecker();
142354
- if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.isJSDocOverrideTag(node) && ts.rangeContainsPosition(node.tagName, position))) {
142355
+ if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.isIdentifier(node) && ts.isJSDocOverrideTag(parent) && parent.tagName === node)) {
142355
142356
  return getDefinitionFromOverriddenMember(typeChecker, node) || ts.emptyArray;
142356
142357
  }
142357
142358
  // Labels
@@ -108,7 +108,7 @@ var ts;
108
108
  // The following is baselined as a literal template type without intervention
109
109
  /** The version of the TypeScript compiler release */
110
110
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
111
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220913");
111
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220914");
112
112
  /* @internal */
113
113
  var Comparison;
114
114
  (function (Comparison) {
@@ -31827,6 +31827,7 @@ var ts;
31827
31827
  _a[338 /* SyntaxKind.JSDocProtectedTag */] = forEachChildInJSDocTag,
31828
31828
  _a[339 /* SyntaxKind.JSDocReadonlyTag */] = forEachChildInJSDocTag,
31829
31829
  _a[334 /* SyntaxKind.JSDocDeprecatedTag */] = forEachChildInJSDocTag,
31830
+ _a[340 /* SyntaxKind.JSDocOverrideTag */] = forEachChildInJSDocTag,
31830
31831
  _a[353 /* SyntaxKind.PartiallyEmittedExpression */] = forEachChildInPartiallyEmittedExpression,
31831
31832
  _a);
31832
31833
  // shared
@@ -72122,7 +72123,7 @@ var ts;
72122
72123
  var narrowedPropType = narrowType(propType);
72123
72124
  return filterType(type, function (t) {
72124
72125
  var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
72125
- return !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
72126
+ return !(discriminantType.flags & 131072 /* TypeFlags.Never */) && !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
72126
72127
  });
72127
72128
  }
72128
72129
  function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
@@ -142769,7 +142770,7 @@ var ts;
142769
142770
  }
142770
142771
  var parent = node.parent;
142771
142772
  var typeChecker = program.getTypeChecker();
142772
- if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.isJSDocOverrideTag(node) && ts.rangeContainsPosition(node.tagName, position))) {
142773
+ if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.isIdentifier(node) && ts.isJSDocOverrideTag(parent) && parent.tagName === node)) {
142773
142774
  return getDefinitionFromOverriddenMember(typeChecker, node) || ts.emptyArray;
142774
142775
  }
142775
142776
  // Labels
package/lib/typescript.js CHANGED
@@ -99,7 +99,7 @@ var ts;
99
99
  // The following is baselined as a literal template type without intervention
100
100
  /** The version of the TypeScript compiler release */
101
101
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
102
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220913");
102
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220914");
103
103
  /* @internal */
104
104
  var Comparison;
105
105
  (function (Comparison) {
@@ -31818,6 +31818,7 @@ var ts;
31818
31818
  _a[338 /* SyntaxKind.JSDocProtectedTag */] = forEachChildInJSDocTag,
31819
31819
  _a[339 /* SyntaxKind.JSDocReadonlyTag */] = forEachChildInJSDocTag,
31820
31820
  _a[334 /* SyntaxKind.JSDocDeprecatedTag */] = forEachChildInJSDocTag,
31821
+ _a[340 /* SyntaxKind.JSDocOverrideTag */] = forEachChildInJSDocTag,
31821
31822
  _a[353 /* SyntaxKind.PartiallyEmittedExpression */] = forEachChildInPartiallyEmittedExpression,
31822
31823
  _a);
31823
31824
  // shared
@@ -72113,7 +72114,7 @@ var ts;
72113
72114
  var narrowedPropType = narrowType(propType);
72114
72115
  return filterType(type, function (t) {
72115
72116
  var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
72116
- return !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
72117
+ return !(discriminantType.flags & 131072 /* TypeFlags.Never */) && !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
72117
72118
  });
72118
72119
  }
72119
72120
  function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
@@ -142760,7 +142761,7 @@ var ts;
142760
142761
  }
142761
142762
  var parent = node.parent;
142762
142763
  var typeChecker = program.getTypeChecker();
142763
- if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.isJSDocOverrideTag(node) && ts.rangeContainsPosition(node.tagName, position))) {
142764
+ if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.isIdentifier(node) && ts.isJSDocOverrideTag(parent) && parent.tagName === node)) {
142764
142765
  return getDefinitionFromOverriddenMember(typeChecker, node) || ts.emptyArray;
142765
142766
  }
142766
142767
  // Labels
@@ -99,7 +99,7 @@ var ts;
99
99
  // The following is baselined as a literal template type without intervention
100
100
  /** The version of the TypeScript compiler release */
101
101
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
102
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220913");
102
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220914");
103
103
  /* @internal */
104
104
  var Comparison;
105
105
  (function (Comparison) {
@@ -31818,6 +31818,7 @@ var ts;
31818
31818
  _a[338 /* SyntaxKind.JSDocProtectedTag */] = forEachChildInJSDocTag,
31819
31819
  _a[339 /* SyntaxKind.JSDocReadonlyTag */] = forEachChildInJSDocTag,
31820
31820
  _a[334 /* SyntaxKind.JSDocDeprecatedTag */] = forEachChildInJSDocTag,
31821
+ _a[340 /* SyntaxKind.JSDocOverrideTag */] = forEachChildInJSDocTag,
31821
31822
  _a[353 /* SyntaxKind.PartiallyEmittedExpression */] = forEachChildInPartiallyEmittedExpression,
31822
31823
  _a);
31823
31824
  // shared
@@ -72113,7 +72114,7 @@ var ts;
72113
72114
  var narrowedPropType = narrowType(propType);
72114
72115
  return filterType(type, function (t) {
72115
72116
  var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
72116
- return !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
72117
+ return !(discriminantType.flags & 131072 /* TypeFlags.Never */) && !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
72117
72118
  });
72118
72119
  }
72119
72120
  function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
@@ -142760,7 +142761,7 @@ var ts;
142760
142761
  }
142761
142762
  var parent = node.parent;
142762
142763
  var typeChecker = program.getTypeChecker();
142763
- if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.isJSDocOverrideTag(node) && ts.rangeContainsPosition(node.tagName, position))) {
142764
+ if (node.kind === 161 /* SyntaxKind.OverrideKeyword */ || (ts.isIdentifier(node) && ts.isJSDocOverrideTag(parent) && parent.tagName === node)) {
142764
142765
  return getDefinitionFromOverriddenMember(typeChecker, node) || ts.emptyArray;
142765
142766
  }
142766
142767
  // Labels
@@ -89,7 +89,7 @@ var ts;
89
89
  // The following is baselined as a literal template type without intervention
90
90
  /** The version of the TypeScript compiler release */
91
91
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
92
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220913");
92
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220914");
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -31808,6 +31808,7 @@ var ts;
31808
31808
  _a[338 /* SyntaxKind.JSDocProtectedTag */] = forEachChildInJSDocTag,
31809
31809
  _a[339 /* SyntaxKind.JSDocReadonlyTag */] = forEachChildInJSDocTag,
31810
31810
  _a[334 /* SyntaxKind.JSDocDeprecatedTag */] = forEachChildInJSDocTag,
31811
+ _a[340 /* SyntaxKind.JSDocOverrideTag */] = forEachChildInJSDocTag,
31811
31812
  _a[353 /* SyntaxKind.PartiallyEmittedExpression */] = forEachChildInPartiallyEmittedExpression,
31812
31813
  _a);
31813
31814
  // shared
@@ -72103,7 +72104,7 @@ var ts;
72103
72104
  var narrowedPropType = narrowType(propType);
72104
72105
  return filterType(type, function (t) {
72105
72106
  var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);
72106
- return !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
72107
+ return !(discriminantType.flags & 131072 /* TypeFlags.Never */) && !(narrowedPropType.flags & 131072 /* TypeFlags.Never */) && areTypesComparable(narrowedPropType, discriminantType);
72107
72108
  });
72108
72109
  }
72109
72110
  function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {
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": "4.9.0-dev.20220913",
5
+ "version": "4.9.0-dev.20220914",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [