@typescript-deploys/pr-build 5.5.0-pr-58157-5 → 5.5.0-pr-58183-2
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 +14 -16
- package/lib/typescript.js +16 -17
- package/package.json +2 -2
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.5";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20240415`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -64554,7 +64554,6 @@ function createTypeChecker(host) {
|
|
|
64554
64554
|
return type;
|
|
64555
64555
|
}
|
|
64556
64556
|
function reportWideningErrorsInType(type) {
|
|
64557
|
-
var _a;
|
|
64558
64557
|
let errorReported = false;
|
|
64559
64558
|
if (getObjectFlags(type) & 65536 /* ContainsWideningType */) {
|
|
64560
64559
|
if (type.flags & 1048576 /* Union */) {
|
|
@@ -64562,28 +64561,27 @@ function createTypeChecker(host) {
|
|
|
64562
64561
|
errorReported = true;
|
|
64563
64562
|
} else {
|
|
64564
64563
|
for (const t of type.types) {
|
|
64565
|
-
|
|
64564
|
+
if (reportWideningErrorsInType(t)) {
|
|
64565
|
+
errorReported = true;
|
|
64566
|
+
}
|
|
64566
64567
|
}
|
|
64567
64568
|
}
|
|
64568
|
-
}
|
|
64569
|
+
}
|
|
64570
|
+
if (isArrayOrTupleType(type)) {
|
|
64569
64571
|
for (const t of getTypeArguments(type)) {
|
|
64570
|
-
|
|
64572
|
+
if (reportWideningErrorsInType(t)) {
|
|
64573
|
+
errorReported = true;
|
|
64574
|
+
}
|
|
64571
64575
|
}
|
|
64572
|
-
}
|
|
64576
|
+
}
|
|
64577
|
+
if (isObjectLiteralType(type)) {
|
|
64573
64578
|
for (const p of getPropertiesOfObjectType(type)) {
|
|
64574
64579
|
const t = getTypeOfSymbol(p);
|
|
64575
64580
|
if (getObjectFlags(t) & 65536 /* ContainsWideningType */) {
|
|
64576
|
-
|
|
64577
|
-
|
|
64578
|
-
const valueDeclaration = (_a = p.declarations) == null ? void 0 : _a.find((d) => {
|
|
64579
|
-
var _a2;
|
|
64580
|
-
return ((_a2 = d.symbol.valueDeclaration) == null ? void 0 : _a2.parent) === type.symbol.valueDeclaration;
|
|
64581
|
-
});
|
|
64582
|
-
if (valueDeclaration) {
|
|
64583
|
-
error(valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t)));
|
|
64584
|
-
errorReported = true;
|
|
64585
|
-
}
|
|
64581
|
+
if (!reportWideningErrorsInType(t)) {
|
|
64582
|
+
error(p.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t)));
|
|
64586
64583
|
}
|
|
64584
|
+
errorReported = true;
|
|
64587
64585
|
}
|
|
64588
64586
|
}
|
|
64589
64587
|
}
|
package/lib/typescript.js
CHANGED
|
@@ -2347,7 +2347,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2347
2347
|
|
|
2348
2348
|
// src/compiler/corePublic.ts
|
|
2349
2349
|
var versionMajorMinor = "5.5";
|
|
2350
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2350
|
+
var version = `${versionMajorMinor}.0-insiders.20240415`;
|
|
2351
2351
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2352
2352
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2353
2353
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -69352,7 +69352,6 @@ function createTypeChecker(host) {
|
|
|
69352
69352
|
return type;
|
|
69353
69353
|
}
|
|
69354
69354
|
function reportWideningErrorsInType(type) {
|
|
69355
|
-
var _a;
|
|
69356
69355
|
let errorReported = false;
|
|
69357
69356
|
if (getObjectFlags(type) & 65536 /* ContainsWideningType */) {
|
|
69358
69357
|
if (type.flags & 1048576 /* Union */) {
|
|
@@ -69360,28 +69359,27 @@ function createTypeChecker(host) {
|
|
|
69360
69359
|
errorReported = true;
|
|
69361
69360
|
} else {
|
|
69362
69361
|
for (const t of type.types) {
|
|
69363
|
-
|
|
69362
|
+
if (reportWideningErrorsInType(t)) {
|
|
69363
|
+
errorReported = true;
|
|
69364
|
+
}
|
|
69364
69365
|
}
|
|
69365
69366
|
}
|
|
69366
|
-
}
|
|
69367
|
+
}
|
|
69368
|
+
if (isArrayOrTupleType(type)) {
|
|
69367
69369
|
for (const t of getTypeArguments(type)) {
|
|
69368
|
-
|
|
69370
|
+
if (reportWideningErrorsInType(t)) {
|
|
69371
|
+
errorReported = true;
|
|
69372
|
+
}
|
|
69369
69373
|
}
|
|
69370
|
-
}
|
|
69374
|
+
}
|
|
69375
|
+
if (isObjectLiteralType2(type)) {
|
|
69371
69376
|
for (const p of getPropertiesOfObjectType(type)) {
|
|
69372
69377
|
const t = getTypeOfSymbol(p);
|
|
69373
69378
|
if (getObjectFlags(t) & 65536 /* ContainsWideningType */) {
|
|
69374
|
-
|
|
69375
|
-
|
|
69376
|
-
const valueDeclaration = (_a = p.declarations) == null ? void 0 : _a.find((d) => {
|
|
69377
|
-
var _a2;
|
|
69378
|
-
return ((_a2 = d.symbol.valueDeclaration) == null ? void 0 : _a2.parent) === type.symbol.valueDeclaration;
|
|
69379
|
-
});
|
|
69380
|
-
if (valueDeclaration) {
|
|
69381
|
-
error2(valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t)));
|
|
69382
|
-
errorReported = true;
|
|
69383
|
-
}
|
|
69379
|
+
if (!reportWideningErrorsInType(t)) {
|
|
69380
|
+
error2(p.valueDeclaration, Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t)));
|
|
69384
69381
|
}
|
|
69382
|
+
errorReported = true;
|
|
69385
69383
|
}
|
|
69386
69384
|
}
|
|
69387
69385
|
}
|
|
@@ -146471,6 +146469,7 @@ var SymbolObject = class {
|
|
|
146471
146469
|
}
|
|
146472
146470
|
getJsDocTags(checker) {
|
|
146473
146471
|
if (this.tags === void 0) {
|
|
146472
|
+
this.tags = emptyArray;
|
|
146474
146473
|
this.tags = getJsDocTagsOfDeclarations(this.declarations, checker);
|
|
146475
146474
|
}
|
|
146476
146475
|
return this.tags;
|
|
@@ -146660,7 +146659,7 @@ function getJsDocTagsOfDeclarations(declarations, checker) {
|
|
|
146660
146659
|
if (declaration.kind === 177 /* GetAccessor */ || declaration.kind === 178 /* SetAccessor */) {
|
|
146661
146660
|
return symbol.getContextualJsDocTags(declaration, checker);
|
|
146662
146661
|
}
|
|
146663
|
-
return ((_a = symbol.declarations) == null ? void 0 : _a.length) === 1 ? symbol.getJsDocTags() : void 0;
|
|
146662
|
+
return ((_a = symbol.declarations) == null ? void 0 : _a.length) === 1 ? symbol.getJsDocTags(checker) : void 0;
|
|
146664
146663
|
}
|
|
146665
146664
|
});
|
|
146666
146665
|
if (inheritedTags) {
|
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.5.0-pr-
|
|
5
|
+
"version": "5.5.0-pr-58183-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"node": "20.1.0",
|
|
113
113
|
"npm": "8.19.4"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "b00ff905bf9e6bf0be57e27ef8ed00187a8b9354"
|
|
116
116
|
}
|