@@ -88,7 +88,7 @@ var ts;
88
88
// If changing the text in this section, be sure to test `configureNightly` too.
89
89
ts.versionMajorMinor = "3.1";
90
90
/** The version of the TypeScript compiler release */
91
- ts.version = ts.versionMajorMinor + ".6 ";
91
+ ts.version = ts.versionMajorMinor + ".7 ";
92
92
})(ts || (ts = {}));
93
93
(function (ts) {
94
94
/* @internal */
@@ -11130,9 +11130,11 @@ var ts;
11130
11130
secondAccessor = member;
11131
11131
}
11132
11132
if (member.kind === 156 /* GetAccessor */ && !getAccessor) {
11133
+ // tslint:disable-next-line no-unnecessary-type-assertion
11133
11134
getAccessor = member;
11134
11135
}
11135
11136
if (member.kind === 157 /* SetAccessor */ && !setAccessor) {
11137
+ // tslint:disable-next-line no-unnecessary-type-assertion
11136
11138
setAccessor = member;
11137
11139
}
11138
11140
}
@@ -22684,12 +22686,15 @@ var ts;
22684
22686
context.hasNoDefaultLib = true;
22685
22687
}
22686
22688
else if (arg.arguments.types) {
22689
+ // tslint:disable-next-line no-unnecessary-type-assertion
22687
22690
typeReferenceDirectives_1.push({ pos: arg.arguments.types.pos, end: arg.arguments.types.end, fileName: arg.arguments.types.value });
22688
22691
}
22689
22692
else if (arg.arguments.lib) {
22693
+ // tslint:disable-next-line no-unnecessary-type-assertion
22690
22694
libReferenceDirectives_1.push({ pos: arg.arguments.lib.pos, end: arg.arguments.lib.end, fileName: arg.arguments.lib.value });
22691
22695
}
22692
22696
else if (arg.arguments.path) {
22697
+ // tslint:disable-next-line no-unnecessary-type-assertion
22693
22698
referencedFiles_1.push({ pos: arg.arguments.path.pos, end: arg.arguments.path.end, fileName: arg.arguments.path.value });
22694
22699
}
22695
22700
else {
@@ -28932,6 +28937,7 @@ var ts;
28932
28937
// If this is a property-parameter, then also declare the property symbol into the
28933
28938
// containing class.
28934
28939
if (ts.isParameterPropertyDeclaration(node)) {
28940
+ // tslint:disable-next-line no-unnecessary-type-assertion
28935
28941
var classDeclaration = node.parent.parent;
28936
28942
declareSymbol(classDeclaration.symbol.members, classDeclaration.symbol, node, 4 /* Property */ | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), 0 /* PropertyExcludes */);
28937
28943
}
@@ -38616,6 +38622,7 @@ var ts;
38616
38622
break;
38617
38623
}
38618
38624
}
38625
+ // tslint:disable-next-line no-unnecessary-type-assertion
38619
38626
return links.resolvedType; // TODO: GH#18217
38620
38627
}
38621
38628
function createIndexedAccessType(objectType, indexType) {
@@ -53033,7 +53040,9 @@ var ts;
53033
53040
if (node.kind === 235 /* VariableDeclaration */ || node.kind === 184 /* BindingElement */) {
53034
53041
checkVarDeclaredNamesNotShadowed(node);
53035
53042
}
53043
+ // tslint:disable-next-line no-unnecessary-type-assertion
53036
53044
checkCollisionWithRequireExportsInGeneratedCode(node, node.name);
53045
+ // tslint:disable-next-line no-unnecessary-type-assertion
53037
53046
checkCollisionWithGlobalPromiseInGeneratedCode(node, node.name);
53038
53047
}
53039
53048
}
@@ -57180,9 +57189,11 @@ var ts;
57180
57189
node.kind === 194 /* FunctionExpression */ ||
57181
57190
node.kind === 154 /* MethodDeclaration */);
57182
57191
if (node.flags & 4194304 /* Ambient */) {
57192
+ // tslint:disable-next-line no-unnecessary-type-assertion
57183
57193
return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);
57184
57194
}
57185
57195
if (!node.body) {
57196
+ // tslint:disable-next-line no-unnecessary-type-assertion
57186
57197
return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);
57187
57198
}
57188
57199
}
@@ -57219,6 +57230,7 @@ var ts;
57219
57230
}
57220
57231
// Modifiers are never allowed on properties except for 'async' on a method declaration
57221
57232
if (prop.modifiers) {
57233
+ // tslint:disable-next-line no-unnecessary-type-assertion
57222
57234
for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) { // TODO: GH#19955
57223
57235
var mod = _c[_b];
57224
57236
if (mod.kind !== 120 /* AsyncKeyword */ || prop.kind !== 154 /* MethodDeclaration */) {
@@ -57566,13 +57578,16 @@ var ts;
57566
57578
var isConstOrReadonly = ts.isDeclarationReadonly(node) || ts.isVariableDeclaration(node) && ts.isVarConst(node);
57567
57579
if (isConstOrReadonly && !node.type) {
57568
57580
if (isInvalidInitializer) {
57581
+ // tslint:disable-next-line no-unnecessary-type-assertion
57569
57582
return grammarErrorOnNode(node.initializer, ts.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);
57570
57583
}
57571
57584
}
57572
57585
else {
57586
+ // tslint:disable-next-line no-unnecessary-type-assertion
57573
57587
return grammarErrorOnNode(node.initializer, ts.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);
57574
57588
}
57575
57589
if (!isConstOrReadonly || isInvalidInitializer) {
57590
+ // tslint:disable-next-line no-unnecessary-type-assertion
57576
57591
return grammarErrorOnNode(node.initializer, ts.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);
57577
57592
}
57578
57593
}
@@ -80492,6 +80507,7 @@ var ts;
80492
80507
ts.Debug.assert(declarationTransform.transformed.length === 1, "Should only see one output from the decl transform");
80493
80508
printSourceFileOrBundle(declarationFilePath, declarationMapPath, declarationTransform.transformed[0], /* bundleInfopath*/ undefined, declarationPrinter, declarationSourceMap);
80494
80509
if (emitOnlyDtsFiles && declarationTransform.transformed[0].kind === 277 /* SourceFile */) {
80510
+ // tslint:disable-next-line no-unnecessary-type-assertion
80495
80511
var sourceFile = declarationTransform.transformed[0];
80496
80512
exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit;
80497
80513
}
@@ -86828,6 +86844,7 @@ var ts;
86828
86844
if (useOldState) {
86829
86845
// Verify the sanity of old state
86830
86846
if (!oldState.currentChangedFilePath) {
86847
+ // tslint:disable-next-line no-unnecessary-type-assertion
86831
86848
ts.Debug.assert(!oldState.affectedFiles && (!oldState.currentAffectedFilesSignatures || !oldState.currentAffectedFilesSignatures.size), "Cannot reuse if only few affected files of currentChangedFile were iterated");
86832
86849
}
86833
86850
if (canCopySemanticDiagnostics) {
@@ -118935,6 +118952,10 @@ var ts;
118935
118952
Project.prototype.enablePlugin = function (pluginConfigEntry, searchPaths, pluginConfigOverrides) {
118936
118953
var _this = this;
118937
118954
this.projectService.logger.info("Enabling plugin " + pluginConfigEntry.name + " from candidate paths: " + searchPaths.join(","));
118955
+ if (ts.parsePackageName(pluginConfigEntry.name).rest) {
118956
+ this.projectService.logger.info("kipped loading plugin " + pluginConfigEntry.name + " because only package name is allowed plugin name");
118957
+ return;
118958
+ }
118938
118959
var log = function (message) {
118939
118960
_this.projectService.logger.info(message);
118940
118961
};
0 commit comments