@@ -288,7 +288,7 @@ var ts;
288
288
// If changing the text in this section, be sure to test `configurePrerelease` too.
289
289
ts.versionMajorMinor = "4.1";
290
290
/** The version of the TypeScript compiler release */
291
- ts.version = "4.1.2 ";
291
+ ts.version = "4.1.3 ";
292
292
/* @internal */
293
293
var Comparison;
294
294
(function (Comparison) {
@@ -45888,7 +45888,7 @@ var ts;
45888
45888
var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
45889
45889
var name = node.propertyName || node.name;
45890
45890
if (commonJSPropertyAccess && resolved && ts.isIdentifier(name)) {
45891
- return getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText);
45891
+ return resolveSymbol( getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias );
45892
45892
}
45893
45893
markSymbolOfAliasDeclarationIfTypeOnly(node, /*immediateTarget*/ undefined, resolved, /*overwriteEmpty*/ false);
45894
45894
return resolved;
@@ -63317,6 +63317,7 @@ var ts;
63317
63317
return errorType;
63318
63318
}
63319
63319
flowDepth++;
63320
+ var sharedFlow;
63320
63321
while (true) {
63321
63322
var flags = flow.flags;
63322
63323
if (flags & 4096 /* Shared */) {
@@ -63329,6 +63330,7 @@ var ts;
63329
63330
return sharedFlowTypes[i];
63330
63331
}
63331
63332
}
63333
+ sharedFlow = flow;
63332
63334
}
63333
63335
var type = void 0;
63334
63336
if (flags & 16 /* Assignment */) {
@@ -63392,9 +63394,9 @@ var ts;
63392
63394
// simply return the non-auto declared type to reduce follow-on errors.
63393
63395
type = convertAutoToAny(declaredType);
63394
63396
}
63395
- if (flags & 4096 /* Shared */ ) {
63397
+ if (sharedFlow ) {
63396
63398
// Record visited node and the associated type in the cache.
63397
- sharedFlowNodes[sharedFlowCount] = flow ;
63399
+ sharedFlowNodes[sharedFlowCount] = sharedFlow ;
63398
63400
sharedFlowTypes[sharedFlowCount] = type;
63399
63401
sharedFlowCount++;
63400
63402
}
@@ -68561,9 +68563,9 @@ var ts;
68561
68563
var oldCandidatesForArgumentError = candidatesForArgumentError;
68562
68564
var oldCandidateForArgumentArityError = candidateForArgumentArityError;
68563
68565
var oldCandidateForTypeArgumentError = candidateForTypeArgumentError;
68564
- var declCount = ts.length(( _a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol.declarations);
68565
- var isOverload = declCount > 1;
68566
- var implDecl = isOverload ? ts.find(((_b = failed.declaration) === null || _b === void 0 ? void 0 : _b.symbol.declarations) || ts.emptyArray , function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
68566
+ var failedSignatureDeclarations = ((_b = ( _a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b .declarations) || ts.emptyArray ;
68567
+ var isOverload = failedSignatureDeclarations.length > 1;
68568
+ var implDecl = isOverload ? ts.find(failedSignatureDeclarations , function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
68567
68569
if (implDecl) {
68568
68570
var candidate = getSignatureFromDeclaration(implDecl);
68569
68571
var isSingleNonGenericCandidate_1 = !candidate.typeParameters;
@@ -150175,6 +150177,8 @@ var ts;
150175
150177
JsxEmit["Preserve"] = "Preserve";
150176
150178
JsxEmit["ReactNative"] = "ReactNative";
150177
150179
JsxEmit["React"] = "React";
150180
+ JsxEmit["ReactJSX"] = "ReactJSX";
150181
+ JsxEmit["ReactJSXDev"] = "ReactJSXDev";
150178
150182
})(JsxEmit = protocol.JsxEmit || (protocol.JsxEmit = {}));
150179
150183
var ModuleKind;
150180
150184
(function (ModuleKind) {
@@ -150185,6 +150189,7 @@ var ts;
150185
150189
ModuleKind["System"] = "System";
150186
150190
ModuleKind["ES6"] = "ES6";
150187
150191
ModuleKind["ES2015"] = "ES2015";
150192
+ ModuleKind["ES2020"] = "ES2020";
150188
150193
ModuleKind["ESNext"] = "ESNext";
150189
150194
})(ModuleKind = protocol.ModuleKind || (protocol.ModuleKind = {}));
150190
150195
var ModuleResolutionKind;
@@ -150208,6 +150213,7 @@ var ts;
150208
150213
ScriptTarget["ES2018"] = "ES2018";
150209
150214
ScriptTarget["ES2019"] = "ES2019";
150210
150215
ScriptTarget["ES2020"] = "ES2020";
150216
+ ScriptTarget["JSON"] = "JSON";
150211
150217
ScriptTarget["ESNext"] = "ESNext";
150212
150218
})(ScriptTarget = protocol.ScriptTarget || (protocol.ScriptTarget = {}));
150213
150219
})(protocol = server.protocol || (server.protocol = {}));
@@ -157272,7 +157278,7 @@ var ts;
157272
157278
};
157273
157279
Session.prototype.getEncodedSemanticClassifications = function (args) {
157274
157280
var _a = this.getFileAndProject(args), file = _a.file, project = _a.project;
157275
- return project.getLanguageService().getEncodedSemanticClassifications(file, args);
157281
+ return project.getLanguageService().getEncodedSemanticClassifications(file, args, args.format );
157276
157282
};
157277
157283
Session.prototype.getProject = function (projectFileName) {
157278
157284
return projectFileName === undefined ? undefined : this.projectService.findProject(projectFileName);
0 commit comments