typescript 4.6.0-dev.20211117 → 4.6.0-dev.20211118
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 +15 -3
- package/lib/tsserver.js +19 -3
- package/lib/tsserverlibrary.js +19 -3
- package/lib/typescript.js +19 -3
- package/lib/typescriptServices.js +19 -3
- package/lib/typingsInstaller.js +19 -3
- 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.6";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211118";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
function tryGetNativeMap() {
|
|
@@ -42581,8 +42581,8 @@ var ts;
|
|
|
42581
42581
|
}
|
|
42582
42582
|
var expandedParams = getExpandedParameters(signature, true)[0];
|
|
42583
42583
|
var parameters = (ts.some(expandedParams, function (p) { return p !== expandedParams[expandedParams.length - 1] && !!(ts.getCheckFlags(p) & 32768); }) ? signature.parameters : expandedParams).map(function (parameter) { return symbolToParameterDeclaration(parameter, context, kind === 170, options === null || options === void 0 ? void 0 : options.privateSymbolVisitor, options === null || options === void 0 ? void 0 : options.bundledImports); });
|
|
42584
|
-
|
|
42585
|
-
|
|
42584
|
+
var thisParameter = tryGetThisParameterDeclaration(signature, context);
|
|
42585
|
+
if (thisParameter) {
|
|
42586
42586
|
parameters.unshift(thisParameter);
|
|
42587
42587
|
}
|
|
42588
42588
|
var returnTypeNode;
|
|
@@ -42631,6 +42631,17 @@ var ts;
|
|
|
42631
42631
|
}
|
|
42632
42632
|
return node;
|
|
42633
42633
|
}
|
|
42634
|
+
function tryGetThisParameterDeclaration(signature, context) {
|
|
42635
|
+
if (signature.thisParameter) {
|
|
42636
|
+
return symbolToParameterDeclaration(signature.thisParameter, context);
|
|
42637
|
+
}
|
|
42638
|
+
if (signature.declaration) {
|
|
42639
|
+
var thisTag = ts.getJSDocThisTag(signature.declaration);
|
|
42640
|
+
if (thisTag && thisTag.typeExpression) {
|
|
42641
|
+
return ts.factory.createParameterDeclaration(undefined, undefined, undefined, "this", undefined, typeToTypeNodeHelper(getTypeFromTypeNode(thisTag.typeExpression), context));
|
|
42642
|
+
}
|
|
42643
|
+
}
|
|
42644
|
+
}
|
|
42634
42645
|
function typeParameterToDeclarationWithConstraint(type, context, constraintNode) {
|
|
42635
42646
|
var savedContextFlags = context.flags;
|
|
42636
42647
|
context.flags &= ~512;
|
|
@@ -94217,6 +94228,7 @@ var ts;
|
|
|
94217
94228
|
newSourceFile.originalFileName = oldSourceFile.originalFileName;
|
|
94218
94229
|
newSourceFile.resolvedPath = oldSourceFile.resolvedPath;
|
|
94219
94230
|
newSourceFile.fileName = oldSourceFile.fileName;
|
|
94231
|
+
newSourceFile.impliedNodeFormat = oldSourceFile.impliedNodeFormat;
|
|
94220
94232
|
var packageName = oldProgram.sourceFileToPackageName.get(oldSourceFile.path);
|
|
94221
94233
|
if (packageName !== undefined) {
|
|
94222
94234
|
var prevKind = seenPackageNames.get(packageName);
|
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.20211118";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -51666,8 +51666,8 @@ var ts;
|
|
|
51666
51666
|
var expandedParams = getExpandedParameters(signature, /*skipUnionExpanding*/ true)[0];
|
|
51667
51667
|
// If the expanded parameter list had a variadic in a non-trailing position, don't expand it
|
|
51668
51668
|
var parameters = (ts.some(expandedParams, function (p) { return p !== expandedParams[expandedParams.length - 1] && !!(ts.getCheckFlags(p) & 32768 /* RestParameter */); }) ? signature.parameters : expandedParams).map(function (parameter) { return symbolToParameterDeclaration(parameter, context, kind === 170 /* Constructor */, options === null || options === void 0 ? void 0 : options.privateSymbolVisitor, options === null || options === void 0 ? void 0 : options.bundledImports); });
|
|
51669
|
-
|
|
51670
|
-
|
|
51669
|
+
var thisParameter = tryGetThisParameterDeclaration(signature, context);
|
|
51670
|
+
if (thisParameter) {
|
|
51671
51671
|
parameters.unshift(thisParameter);
|
|
51672
51672
|
}
|
|
51673
51673
|
var returnTypeNode;
|
|
@@ -51716,6 +51716,21 @@ var ts;
|
|
|
51716
51716
|
}
|
|
51717
51717
|
return node;
|
|
51718
51718
|
}
|
|
51719
|
+
function tryGetThisParameterDeclaration(signature, context) {
|
|
51720
|
+
if (signature.thisParameter) {
|
|
51721
|
+
return symbolToParameterDeclaration(signature.thisParameter, context);
|
|
51722
|
+
}
|
|
51723
|
+
if (signature.declaration) {
|
|
51724
|
+
var thisTag = ts.getJSDocThisTag(signature.declaration);
|
|
51725
|
+
if (thisTag && thisTag.typeExpression) {
|
|
51726
|
+
return ts.factory.createParameterDeclaration(
|
|
51727
|
+
/* decorators */ undefined,
|
|
51728
|
+
/* modifiers */ undefined,
|
|
51729
|
+
/* dotDotDotToken */ undefined, "this",
|
|
51730
|
+
/* questionToken */ undefined, typeToTypeNodeHelper(getTypeFromTypeNode(thisTag.typeExpression), context));
|
|
51731
|
+
}
|
|
51732
|
+
}
|
|
51733
|
+
}
|
|
51719
51734
|
function typeParameterToDeclarationWithConstraint(type, context, constraintNode) {
|
|
51720
51735
|
var savedContextFlags = context.flags;
|
|
51721
51736
|
context.flags &= ~512 /* WriteTypeParametersInQualifiedName */; // Avoids potential infinite loop when building for a claimspace with a generic
|
|
@@ -114269,6 +114284,7 @@ var ts;
|
|
|
114269
114284
|
newSourceFile.originalFileName = oldSourceFile.originalFileName;
|
|
114270
114285
|
newSourceFile.resolvedPath = oldSourceFile.resolvedPath;
|
|
114271
114286
|
newSourceFile.fileName = oldSourceFile.fileName;
|
|
114287
|
+
newSourceFile.impliedNodeFormat = oldSourceFile.impliedNodeFormat;
|
|
114272
114288
|
var packageName = oldProgram.sourceFileToPackageName.get(oldSourceFile.path);
|
|
114273
114289
|
if (packageName !== undefined) {
|
|
114274
114290
|
// If there are 2 different source files for the same package name and at least one of them changes,
|
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.20211118";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -51860,8 +51860,8 @@ var ts;
|
|
|
51860
51860
|
var expandedParams = getExpandedParameters(signature, /*skipUnionExpanding*/ true)[0];
|
|
51861
51861
|
// If the expanded parameter list had a variadic in a non-trailing position, don't expand it
|
|
51862
51862
|
var parameters = (ts.some(expandedParams, function (p) { return p !== expandedParams[expandedParams.length - 1] && !!(ts.getCheckFlags(p) & 32768 /* RestParameter */); }) ? signature.parameters : expandedParams).map(function (parameter) { return symbolToParameterDeclaration(parameter, context, kind === 170 /* Constructor */, options === null || options === void 0 ? void 0 : options.privateSymbolVisitor, options === null || options === void 0 ? void 0 : options.bundledImports); });
|
|
51863
|
-
|
|
51864
|
-
|
|
51863
|
+
var thisParameter = tryGetThisParameterDeclaration(signature, context);
|
|
51864
|
+
if (thisParameter) {
|
|
51865
51865
|
parameters.unshift(thisParameter);
|
|
51866
51866
|
}
|
|
51867
51867
|
var returnTypeNode;
|
|
@@ -51910,6 +51910,21 @@ var ts;
|
|
|
51910
51910
|
}
|
|
51911
51911
|
return node;
|
|
51912
51912
|
}
|
|
51913
|
+
function tryGetThisParameterDeclaration(signature, context) {
|
|
51914
|
+
if (signature.thisParameter) {
|
|
51915
|
+
return symbolToParameterDeclaration(signature.thisParameter, context);
|
|
51916
|
+
}
|
|
51917
|
+
if (signature.declaration) {
|
|
51918
|
+
var thisTag = ts.getJSDocThisTag(signature.declaration);
|
|
51919
|
+
if (thisTag && thisTag.typeExpression) {
|
|
51920
|
+
return ts.factory.createParameterDeclaration(
|
|
51921
|
+
/* decorators */ undefined,
|
|
51922
|
+
/* modifiers */ undefined,
|
|
51923
|
+
/* dotDotDotToken */ undefined, "this",
|
|
51924
|
+
/* questionToken */ undefined, typeToTypeNodeHelper(getTypeFromTypeNode(thisTag.typeExpression), context));
|
|
51925
|
+
}
|
|
51926
|
+
}
|
|
51927
|
+
}
|
|
51913
51928
|
function typeParameterToDeclarationWithConstraint(type, context, constraintNode) {
|
|
51914
51929
|
var savedContextFlags = context.flags;
|
|
51915
51930
|
context.flags &= ~512 /* WriteTypeParametersInQualifiedName */; // Avoids potential infinite loop when building for a claimspace with a generic
|
|
@@ -114463,6 +114478,7 @@ var ts;
|
|
|
114463
114478
|
newSourceFile.originalFileName = oldSourceFile.originalFileName;
|
|
114464
114479
|
newSourceFile.resolvedPath = oldSourceFile.resolvedPath;
|
|
114465
114480
|
newSourceFile.fileName = oldSourceFile.fileName;
|
|
114481
|
+
newSourceFile.impliedNodeFormat = oldSourceFile.impliedNodeFormat;
|
|
114466
114482
|
var packageName = oldProgram.sourceFileToPackageName.get(oldSourceFile.path);
|
|
114467
114483
|
if (packageName !== undefined) {
|
|
114468
114484
|
// If there are 2 different source files for the same package name and at least one of them changes,
|
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.20211118";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -51860,8 +51860,8 @@ var ts;
|
|
|
51860
51860
|
var expandedParams = getExpandedParameters(signature, /*skipUnionExpanding*/ true)[0];
|
|
51861
51861
|
// If the expanded parameter list had a variadic in a non-trailing position, don't expand it
|
|
51862
51862
|
var parameters = (ts.some(expandedParams, function (p) { return p !== expandedParams[expandedParams.length - 1] && !!(ts.getCheckFlags(p) & 32768 /* RestParameter */); }) ? signature.parameters : expandedParams).map(function (parameter) { return symbolToParameterDeclaration(parameter, context, kind === 170 /* Constructor */, options === null || options === void 0 ? void 0 : options.privateSymbolVisitor, options === null || options === void 0 ? void 0 : options.bundledImports); });
|
|
51863
|
-
|
|
51864
|
-
|
|
51863
|
+
var thisParameter = tryGetThisParameterDeclaration(signature, context);
|
|
51864
|
+
if (thisParameter) {
|
|
51865
51865
|
parameters.unshift(thisParameter);
|
|
51866
51866
|
}
|
|
51867
51867
|
var returnTypeNode;
|
|
@@ -51910,6 +51910,21 @@ var ts;
|
|
|
51910
51910
|
}
|
|
51911
51911
|
return node;
|
|
51912
51912
|
}
|
|
51913
|
+
function tryGetThisParameterDeclaration(signature, context) {
|
|
51914
|
+
if (signature.thisParameter) {
|
|
51915
|
+
return symbolToParameterDeclaration(signature.thisParameter, context);
|
|
51916
|
+
}
|
|
51917
|
+
if (signature.declaration) {
|
|
51918
|
+
var thisTag = ts.getJSDocThisTag(signature.declaration);
|
|
51919
|
+
if (thisTag && thisTag.typeExpression) {
|
|
51920
|
+
return ts.factory.createParameterDeclaration(
|
|
51921
|
+
/* decorators */ undefined,
|
|
51922
|
+
/* modifiers */ undefined,
|
|
51923
|
+
/* dotDotDotToken */ undefined, "this",
|
|
51924
|
+
/* questionToken */ undefined, typeToTypeNodeHelper(getTypeFromTypeNode(thisTag.typeExpression), context));
|
|
51925
|
+
}
|
|
51926
|
+
}
|
|
51927
|
+
}
|
|
51913
51928
|
function typeParameterToDeclarationWithConstraint(type, context, constraintNode) {
|
|
51914
51929
|
var savedContextFlags = context.flags;
|
|
51915
51930
|
context.flags &= ~512 /* WriteTypeParametersInQualifiedName */; // Avoids potential infinite loop when building for a claimspace with a generic
|
|
@@ -114463,6 +114478,7 @@ var ts;
|
|
|
114463
114478
|
newSourceFile.originalFileName = oldSourceFile.originalFileName;
|
|
114464
114479
|
newSourceFile.resolvedPath = oldSourceFile.resolvedPath;
|
|
114465
114480
|
newSourceFile.fileName = oldSourceFile.fileName;
|
|
114481
|
+
newSourceFile.impliedNodeFormat = oldSourceFile.impliedNodeFormat;
|
|
114466
114482
|
var packageName = oldProgram.sourceFileToPackageName.get(oldSourceFile.path);
|
|
114467
114483
|
if (packageName !== undefined) {
|
|
114468
114484
|
// If there are 2 different source files for the same package name and at least one of them changes,
|
|
@@ -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.20211118";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -51860,8 +51860,8 @@ var ts;
|
|
|
51860
51860
|
var expandedParams = getExpandedParameters(signature, /*skipUnionExpanding*/ true)[0];
|
|
51861
51861
|
// If the expanded parameter list had a variadic in a non-trailing position, don't expand it
|
|
51862
51862
|
var parameters = (ts.some(expandedParams, function (p) { return p !== expandedParams[expandedParams.length - 1] && !!(ts.getCheckFlags(p) & 32768 /* RestParameter */); }) ? signature.parameters : expandedParams).map(function (parameter) { return symbolToParameterDeclaration(parameter, context, kind === 170 /* Constructor */, options === null || options === void 0 ? void 0 : options.privateSymbolVisitor, options === null || options === void 0 ? void 0 : options.bundledImports); });
|
|
51863
|
-
|
|
51864
|
-
|
|
51863
|
+
var thisParameter = tryGetThisParameterDeclaration(signature, context);
|
|
51864
|
+
if (thisParameter) {
|
|
51865
51865
|
parameters.unshift(thisParameter);
|
|
51866
51866
|
}
|
|
51867
51867
|
var returnTypeNode;
|
|
@@ -51910,6 +51910,21 @@ var ts;
|
|
|
51910
51910
|
}
|
|
51911
51911
|
return node;
|
|
51912
51912
|
}
|
|
51913
|
+
function tryGetThisParameterDeclaration(signature, context) {
|
|
51914
|
+
if (signature.thisParameter) {
|
|
51915
|
+
return symbolToParameterDeclaration(signature.thisParameter, context);
|
|
51916
|
+
}
|
|
51917
|
+
if (signature.declaration) {
|
|
51918
|
+
var thisTag = ts.getJSDocThisTag(signature.declaration);
|
|
51919
|
+
if (thisTag && thisTag.typeExpression) {
|
|
51920
|
+
return ts.factory.createParameterDeclaration(
|
|
51921
|
+
/* decorators */ undefined,
|
|
51922
|
+
/* modifiers */ undefined,
|
|
51923
|
+
/* dotDotDotToken */ undefined, "this",
|
|
51924
|
+
/* questionToken */ undefined, typeToTypeNodeHelper(getTypeFromTypeNode(thisTag.typeExpression), context));
|
|
51925
|
+
}
|
|
51926
|
+
}
|
|
51927
|
+
}
|
|
51913
51928
|
function typeParameterToDeclarationWithConstraint(type, context, constraintNode) {
|
|
51914
51929
|
var savedContextFlags = context.flags;
|
|
51915
51930
|
context.flags &= ~512 /* WriteTypeParametersInQualifiedName */; // Avoids potential infinite loop when building for a claimspace with a generic
|
|
@@ -114463,6 +114478,7 @@ var ts;
|
|
|
114463
114478
|
newSourceFile.originalFileName = oldSourceFile.originalFileName;
|
|
114464
114479
|
newSourceFile.resolvedPath = oldSourceFile.resolvedPath;
|
|
114465
114480
|
newSourceFile.fileName = oldSourceFile.fileName;
|
|
114481
|
+
newSourceFile.impliedNodeFormat = oldSourceFile.impliedNodeFormat;
|
|
114466
114482
|
var packageName = oldProgram.sourceFileToPackageName.get(oldSourceFile.path);
|
|
114467
114483
|
if (packageName !== undefined) {
|
|
114468
114484
|
// If there are 2 different source files for the same package name and at least one of them changes,
|
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.20211118";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -51655,8 +51655,8 @@ var ts;
|
|
|
51655
51655
|
var expandedParams = getExpandedParameters(signature, /*skipUnionExpanding*/ true)[0];
|
|
51656
51656
|
// If the expanded parameter list had a variadic in a non-trailing position, don't expand it
|
|
51657
51657
|
var parameters = (ts.some(expandedParams, function (p) { return p !== expandedParams[expandedParams.length - 1] && !!(ts.getCheckFlags(p) & 32768 /* RestParameter */); }) ? signature.parameters : expandedParams).map(function (parameter) { return symbolToParameterDeclaration(parameter, context, kind === 170 /* Constructor */, options === null || options === void 0 ? void 0 : options.privateSymbolVisitor, options === null || options === void 0 ? void 0 : options.bundledImports); });
|
|
51658
|
-
|
|
51659
|
-
|
|
51658
|
+
var thisParameter = tryGetThisParameterDeclaration(signature, context);
|
|
51659
|
+
if (thisParameter) {
|
|
51660
51660
|
parameters.unshift(thisParameter);
|
|
51661
51661
|
}
|
|
51662
51662
|
var returnTypeNode;
|
|
@@ -51705,6 +51705,21 @@ var ts;
|
|
|
51705
51705
|
}
|
|
51706
51706
|
return node;
|
|
51707
51707
|
}
|
|
51708
|
+
function tryGetThisParameterDeclaration(signature, context) {
|
|
51709
|
+
if (signature.thisParameter) {
|
|
51710
|
+
return symbolToParameterDeclaration(signature.thisParameter, context);
|
|
51711
|
+
}
|
|
51712
|
+
if (signature.declaration) {
|
|
51713
|
+
var thisTag = ts.getJSDocThisTag(signature.declaration);
|
|
51714
|
+
if (thisTag && thisTag.typeExpression) {
|
|
51715
|
+
return ts.factory.createParameterDeclaration(
|
|
51716
|
+
/* decorators */ undefined,
|
|
51717
|
+
/* modifiers */ undefined,
|
|
51718
|
+
/* dotDotDotToken */ undefined, "this",
|
|
51719
|
+
/* questionToken */ undefined, typeToTypeNodeHelper(getTypeFromTypeNode(thisTag.typeExpression), context));
|
|
51720
|
+
}
|
|
51721
|
+
}
|
|
51722
|
+
}
|
|
51708
51723
|
function typeParameterToDeclarationWithConstraint(type, context, constraintNode) {
|
|
51709
51724
|
var savedContextFlags = context.flags;
|
|
51710
51725
|
context.flags &= ~512 /* WriteTypeParametersInQualifiedName */; // Avoids potential infinite loop when building for a claimspace with a generic
|
|
@@ -114258,6 +114273,7 @@ var ts;
|
|
|
114258
114273
|
newSourceFile.originalFileName = oldSourceFile.originalFileName;
|
|
114259
114274
|
newSourceFile.resolvedPath = oldSourceFile.resolvedPath;
|
|
114260
114275
|
newSourceFile.fileName = oldSourceFile.fileName;
|
|
114276
|
+
newSourceFile.impliedNodeFormat = oldSourceFile.impliedNodeFormat;
|
|
114261
114277
|
var packageName = oldProgram.sourceFileToPackageName.get(oldSourceFile.path);
|
|
114262
114278
|
if (packageName !== undefined) {
|
|
114263
114279
|
// If there are 2 different source files for the same package name and at least one of them changes,
|
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.6.0-dev.
|
|
5
|
+
"version": "4.6.0-dev.20211118",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|