typescript 6.0.0-dev.20251226 → 6.0.0-dev.20251228

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 = "6.0";
21
- var version = `${versionMajorMinor}.0-dev.20251226`;
21
+ var version = `${versionMajorMinor}.0-dev.20251228`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -57073,6 +57073,9 @@ function createTypeChecker(host) {
57073
57073
  ));
57074
57074
  }
57075
57075
  function getBaseTypes(type) {
57076
+ if (!(getObjectFlags(type) & (3 /* ClassOrInterface */ | 4 /* Reference */))) {
57077
+ return emptyArray;
57078
+ }
57076
57079
  if (!type.baseTypesResolved) {
57077
57080
  if (pushTypeResolution(type, 6 /* ResolvedBaseTypes */)) {
57078
57081
  if (type.objectFlags & 8 /* Tuple */) {
@@ -75236,27 +75239,14 @@ function createTypeChecker(host) {
75236
75239
  });
75237
75240
  }
75238
75241
  function isPropertyDeclaredInAncestorClass(prop) {
75239
- if (!(prop.parent.flags & 32 /* Class */)) {
75240
- return false;
75241
- }
75242
- let classType = getTypeOfSymbol(prop.parent);
75243
- while (true) {
75244
- classType = classType.symbol && getSuperClass(classType);
75245
- if (!classType) {
75246
- return false;
75247
- }
75248
- const superProperty = getPropertyOfType(classType, prop.escapedName);
75249
- if (superProperty && superProperty.valueDeclaration) {
75250
- return true;
75242
+ if (prop.parent && prop.parent.flags & 32 /* Class */) {
75243
+ const baseTypes = getBaseTypes(getDeclaredTypeOfSymbol(prop.parent));
75244
+ if (baseTypes.length) {
75245
+ const superProperty = getPropertyOfType(baseTypes[0], prop.escapedName);
75246
+ return !!(superProperty && superProperty.valueDeclaration);
75251
75247
  }
75252
75248
  }
75253
- }
75254
- function getSuperClass(classType) {
75255
- const x = getBaseTypes(classType);
75256
- if (x.length === 0) {
75257
- return void 0;
75258
- }
75259
- return getIntersectionType(x);
75249
+ return false;
75260
75250
  }
75261
75251
  function reportNonexistentProperty(propNode, containingType, isUncheckedJS) {
75262
75252
  const links = getNodeLinks(propNode);
package/lib/typescript.js CHANGED
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
2285
2285
 
2286
2286
  // src/compiler/corePublic.ts
2287
2287
  var versionMajorMinor = "6.0";
2288
- var version = `${versionMajorMinor}.0-dev.20251226`;
2288
+ var version = `${versionMajorMinor}.0-dev.20251228`;
2289
2289
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2290
2290
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2291
2291
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -61701,6 +61701,9 @@ function createTypeChecker(host) {
61701
61701
  ));
61702
61702
  }
61703
61703
  function getBaseTypes(type) {
61704
+ if (!(getObjectFlags(type) & (3 /* ClassOrInterface */ | 4 /* Reference */))) {
61705
+ return emptyArray;
61706
+ }
61704
61707
  if (!type.baseTypesResolved) {
61705
61708
  if (pushTypeResolution(type, 6 /* ResolvedBaseTypes */)) {
61706
61709
  if (type.objectFlags & 8 /* Tuple */) {
@@ -79864,27 +79867,14 @@ function createTypeChecker(host) {
79864
79867
  });
79865
79868
  }
79866
79869
  function isPropertyDeclaredInAncestorClass(prop) {
79867
- if (!(prop.parent.flags & 32 /* Class */)) {
79868
- return false;
79869
- }
79870
- let classType = getTypeOfSymbol(prop.parent);
79871
- while (true) {
79872
- classType = classType.symbol && getSuperClass(classType);
79873
- if (!classType) {
79874
- return false;
79875
- }
79876
- const superProperty = getPropertyOfType(classType, prop.escapedName);
79877
- if (superProperty && superProperty.valueDeclaration) {
79878
- return true;
79870
+ if (prop.parent && prop.parent.flags & 32 /* Class */) {
79871
+ const baseTypes = getBaseTypes(getDeclaredTypeOfSymbol(prop.parent));
79872
+ if (baseTypes.length) {
79873
+ const superProperty = getPropertyOfType(baseTypes[0], prop.escapedName);
79874
+ return !!(superProperty && superProperty.valueDeclaration);
79879
79875
  }
79880
79876
  }
79881
- }
79882
- function getSuperClass(classType) {
79883
- const x = getBaseTypes(classType);
79884
- if (x.length === 0) {
79885
- return void 0;
79886
- }
79887
- return getIntersectionType(x);
79877
+ return false;
79888
79878
  }
79889
79879
  function reportNonexistentProperty(propNode, containingType, isUncheckedJS) {
79890
79880
  const links = getNodeLinks(propNode);
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": "6.0.0-dev.20251226",
5
+ "version": "6.0.0-dev.20251228",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -115,5 +115,5 @@
115
115
  "node": "20.1.0",
116
116
  "npm": "8.19.4"
117
117
  },
118
- "gitHead": "2dfdbbabae955186f821925c629a37d8df76bab2"
118
+ "gitHead": "1f5f9f34d325b2c7e3a53179108b0a217e2dae93"
119
119
  }