typescript 4.8.0-dev.20220601 → 4.8.0-dev.20220602
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 +5 -2
- package/lib/tsserver.js +6 -2
- package/lib/tsserverlibrary.js +6 -2
- package/lib/typescript.js +6 -2
- package/lib/typescriptServices.js +6 -2
- package/lib/typingsInstaller.js +6 -2
- package/package.json +1 -1
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.8";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220602";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
var globals = typeof globalThis !== "undefined" ? globalThis :
|
|
@@ -48757,7 +48757,7 @@ var ts;
|
|
|
48757
48757
|
var objectType;
|
|
48758
48758
|
return !!(type.flags & 8388608 && ts.getObjectFlags(objectType = type.objectType) & 32 &&
|
|
48759
48759
|
!isGenericMappedType(objectType) && isGenericIndexType(type.indexType) &&
|
|
48760
|
-
!objectType
|
|
48760
|
+
!(getMappedTypeModifiers(objectType) & 8) && !objectType.declaration.nameType);
|
|
48761
48761
|
}
|
|
48762
48762
|
function getApparentType(type) {
|
|
48763
48763
|
var t = !(type.flags & 465829888) ? type : getBaseConstraintOfType(type) || unknownType;
|
|
@@ -65907,6 +65907,9 @@ var ts;
|
|
|
65907
65907
|
if (target.kind === 221 && target.operatorToken.kind === 63) {
|
|
65908
65908
|
checkBinaryExpression(target, checkMode);
|
|
65909
65909
|
target = target.left;
|
|
65910
|
+
if (strictNullChecks) {
|
|
65911
|
+
sourceType = getTypeWithFacts(sourceType, 524288);
|
|
65912
|
+
}
|
|
65910
65913
|
}
|
|
65911
65914
|
if (target.kind === 205) {
|
|
65912
65915
|
return checkObjectLiteralAssignment(target, sourceType, rightIsThis);
|
package/lib/tsserver.js
CHANGED
|
@@ -100,7 +100,7 @@ var ts;
|
|
|
100
100
|
// The following is baselined as a literal template type without intervention
|
|
101
101
|
/** The version of the TypeScript compiler release */
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
103
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
103
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220602";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -58959,7 +58959,7 @@ var ts;
|
|
|
58959
58959
|
var objectType;
|
|
58960
58960
|
return !!(type.flags & 8388608 /* IndexedAccess */ && ts.getObjectFlags(objectType = type.objectType) & 32 /* Mapped */ &&
|
|
58961
58961
|
!isGenericMappedType(objectType) && isGenericIndexType(type.indexType) &&
|
|
58962
|
-
!objectType
|
|
58962
|
+
!(getMappedTypeModifiers(objectType) & 8 /* ExcludeOptional */) && !objectType.declaration.nameType);
|
|
58963
58963
|
}
|
|
58964
58964
|
/**
|
|
58965
58965
|
* For a type parameter, return the base constraint of the type parameter. For the string, number,
|
|
@@ -78786,6 +78786,10 @@ var ts;
|
|
|
78786
78786
|
if (target.kind === 221 /* BinaryExpression */ && target.operatorToken.kind === 63 /* EqualsToken */) {
|
|
78787
78787
|
checkBinaryExpression(target, checkMode);
|
|
78788
78788
|
target = target.left;
|
|
78789
|
+
// A default value is specified, so remove undefined from the final type.
|
|
78790
|
+
if (strictNullChecks) {
|
|
78791
|
+
sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */);
|
|
78792
|
+
}
|
|
78789
78793
|
}
|
|
78790
78794
|
if (target.kind === 205 /* ObjectLiteralExpression */) {
|
|
78791
78795
|
return checkObjectLiteralAssignment(target, sourceType, rightIsThis);
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220602";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -59153,7 +59153,7 @@ var ts;
|
|
|
59153
59153
|
var objectType;
|
|
59154
59154
|
return !!(type.flags & 8388608 /* IndexedAccess */ && ts.getObjectFlags(objectType = type.objectType) & 32 /* Mapped */ &&
|
|
59155
59155
|
!isGenericMappedType(objectType) && isGenericIndexType(type.indexType) &&
|
|
59156
|
-
!objectType
|
|
59156
|
+
!(getMappedTypeModifiers(objectType) & 8 /* ExcludeOptional */) && !objectType.declaration.nameType);
|
|
59157
59157
|
}
|
|
59158
59158
|
/**
|
|
59159
59159
|
* For a type parameter, return the base constraint of the type parameter. For the string, number,
|
|
@@ -78980,6 +78980,10 @@ var ts;
|
|
|
78980
78980
|
if (target.kind === 221 /* BinaryExpression */ && target.operatorToken.kind === 63 /* EqualsToken */) {
|
|
78981
78981
|
checkBinaryExpression(target, checkMode);
|
|
78982
78982
|
target = target.left;
|
|
78983
|
+
// A default value is specified, so remove undefined from the final type.
|
|
78984
|
+
if (strictNullChecks) {
|
|
78985
|
+
sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */);
|
|
78986
|
+
}
|
|
78983
78987
|
}
|
|
78984
78988
|
if (target.kind === 205 /* ObjectLiteralExpression */) {
|
|
78985
78989
|
return checkObjectLiteralAssignment(target, sourceType, rightIsThis);
|
package/lib/typescript.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220602";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -59153,7 +59153,7 @@ var ts;
|
|
|
59153
59153
|
var objectType;
|
|
59154
59154
|
return !!(type.flags & 8388608 /* IndexedAccess */ && ts.getObjectFlags(objectType = type.objectType) & 32 /* Mapped */ &&
|
|
59155
59155
|
!isGenericMappedType(objectType) && isGenericIndexType(type.indexType) &&
|
|
59156
|
-
!objectType
|
|
59156
|
+
!(getMappedTypeModifiers(objectType) & 8 /* ExcludeOptional */) && !objectType.declaration.nameType);
|
|
59157
59157
|
}
|
|
59158
59158
|
/**
|
|
59159
59159
|
* For a type parameter, return the base constraint of the type parameter. For the string, number,
|
|
@@ -78980,6 +78980,10 @@ var ts;
|
|
|
78980
78980
|
if (target.kind === 221 /* BinaryExpression */ && target.operatorToken.kind === 63 /* EqualsToken */) {
|
|
78981
78981
|
checkBinaryExpression(target, checkMode);
|
|
78982
78982
|
target = target.left;
|
|
78983
|
+
// A default value is specified, so remove undefined from the final type.
|
|
78984
|
+
if (strictNullChecks) {
|
|
78985
|
+
sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */);
|
|
78986
|
+
}
|
|
78983
78987
|
}
|
|
78984
78988
|
if (target.kind === 205 /* ObjectLiteralExpression */) {
|
|
78985
78989
|
return checkObjectLiteralAssignment(target, sourceType, rightIsThis);
|
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220602";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -59153,7 +59153,7 @@ var ts;
|
|
|
59153
59153
|
var objectType;
|
|
59154
59154
|
return !!(type.flags & 8388608 /* IndexedAccess */ && ts.getObjectFlags(objectType = type.objectType) & 32 /* Mapped */ &&
|
|
59155
59155
|
!isGenericMappedType(objectType) && isGenericIndexType(type.indexType) &&
|
|
59156
|
-
!objectType
|
|
59156
|
+
!(getMappedTypeModifiers(objectType) & 8 /* ExcludeOptional */) && !objectType.declaration.nameType);
|
|
59157
59157
|
}
|
|
59158
59158
|
/**
|
|
59159
59159
|
* For a type parameter, return the base constraint of the type parameter. For the string, number,
|
|
@@ -78980,6 +78980,10 @@ var ts;
|
|
|
78980
78980
|
if (target.kind === 221 /* BinaryExpression */ && target.operatorToken.kind === 63 /* EqualsToken */) {
|
|
78981
78981
|
checkBinaryExpression(target, checkMode);
|
|
78982
78982
|
target = target.left;
|
|
78983
|
+
// A default value is specified, so remove undefined from the final type.
|
|
78984
|
+
if (strictNullChecks) {
|
|
78985
|
+
sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */);
|
|
78986
|
+
}
|
|
78983
78987
|
}
|
|
78984
78988
|
if (target.kind === 205 /* ObjectLiteralExpression */) {
|
|
78985
78989
|
return checkObjectLiteralAssignment(target, sourceType, rightIsThis);
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -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 = ts.versionMajorMinor + ".0-dev.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20220602";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -58948,7 +58948,7 @@ var ts;
|
|
|
58948
58948
|
var objectType;
|
|
58949
58949
|
return !!(type.flags & 8388608 /* IndexedAccess */ && ts.getObjectFlags(objectType = type.objectType) & 32 /* Mapped */ &&
|
|
58950
58950
|
!isGenericMappedType(objectType) && isGenericIndexType(type.indexType) &&
|
|
58951
|
-
!objectType
|
|
58951
|
+
!(getMappedTypeModifiers(objectType) & 8 /* ExcludeOptional */) && !objectType.declaration.nameType);
|
|
58952
58952
|
}
|
|
58953
58953
|
/**
|
|
58954
58954
|
* For a type parameter, return the base constraint of the type parameter. For the string, number,
|
|
@@ -78775,6 +78775,10 @@ var ts;
|
|
|
78775
78775
|
if (target.kind === 221 /* BinaryExpression */ && target.operatorToken.kind === 63 /* EqualsToken */) {
|
|
78776
78776
|
checkBinaryExpression(target, checkMode);
|
|
78777
78777
|
target = target.left;
|
|
78778
|
+
// A default value is specified, so remove undefined from the final type.
|
|
78779
|
+
if (strictNullChecks) {
|
|
78780
|
+
sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */);
|
|
78781
|
+
}
|
|
78778
78782
|
}
|
|
78779
78783
|
if (target.kind === 205 /* ObjectLiteralExpression */) {
|
|
78780
78784
|
return checkObjectLiteralAssignment(target, sourceType, rightIsThis);
|
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.8.0-dev.
|
|
5
|
+
"version": "4.8.0-dev.20220602",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|