typescript 4.1.2 → 4.1.3
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/lib.es5.d.ts +1 -1
- package/lib/protocol.d.ts +5 -1
- package/lib/tsc.js +9 -7
- package/lib/tsserver.js +14 -8
- package/lib/tsserverlibrary.d.ts +5 -1
- package/lib/tsserverlibrary.js +14 -8
- package/lib/typescript.js +9 -7
- package/lib/typescriptServices.js +9 -7
- package/lib/typingsInstaller.js +9 -7
- package/package.json +1 -1
package/lib/lib.es5.d.ts
CHANGED
|
@@ -1396,7 +1396,7 @@ interface ArrayConstructor {
|
|
|
1396
1396
|
(arrayLength?: number): any[];
|
|
1397
1397
|
<T>(arrayLength: number): T[];
|
|
1398
1398
|
<T>(...items: T[]): T[];
|
|
1399
|
-
isArray
|
|
1399
|
+
isArray(arg: any): arg is any[];
|
|
1400
1400
|
readonly prototype: any[];
|
|
1401
1401
|
}
|
|
1402
1402
|
|
package/lib/protocol.d.ts
CHANGED
|
@@ -2569,7 +2569,9 @@ declare namespace ts.server.protocol {
|
|
|
2569
2569
|
None = "None",
|
|
2570
2570
|
Preserve = "Preserve",
|
|
2571
2571
|
ReactNative = "ReactNative",
|
|
2572
|
-
React = "React"
|
|
2572
|
+
React = "React",
|
|
2573
|
+
ReactJSX = "ReactJSX",
|
|
2574
|
+
ReactJSXDev = "ReactJSXDev"
|
|
2573
2575
|
}
|
|
2574
2576
|
const enum ModuleKind {
|
|
2575
2577
|
None = "None",
|
|
@@ -2579,6 +2581,7 @@ declare namespace ts.server.protocol {
|
|
|
2579
2581
|
System = "System",
|
|
2580
2582
|
ES6 = "ES6",
|
|
2581
2583
|
ES2015 = "ES2015",
|
|
2584
|
+
ES2020 = "ES2020",
|
|
2582
2585
|
ESNext = "ESNext"
|
|
2583
2586
|
}
|
|
2584
2587
|
const enum ModuleResolutionKind {
|
|
@@ -2599,6 +2602,7 @@ declare namespace ts.server.protocol {
|
|
|
2599
2602
|
ES2018 = "ES2018",
|
|
2600
2603
|
ES2019 = "ES2019",
|
|
2601
2604
|
ES2020 = "ES2020",
|
|
2605
|
+
JSON = "JSON",
|
|
2602
2606
|
ESNext = "ESNext"
|
|
2603
2607
|
}
|
|
2604
2608
|
}
|
package/lib/tsc.js
CHANGED
|
@@ -67,7 +67,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
67
67
|
var ts;
|
|
68
68
|
(function (ts) {
|
|
69
69
|
ts.versionMajorMinor = "4.1";
|
|
70
|
-
ts.version = "4.1.
|
|
70
|
+
ts.version = "4.1.3";
|
|
71
71
|
var NativeCollections;
|
|
72
72
|
(function (NativeCollections) {
|
|
73
73
|
function tryGetNativeMap() {
|
|
@@ -37353,7 +37353,7 @@ var ts;
|
|
|
37353
37353
|
var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
|
|
37354
37354
|
var name = node.propertyName || node.name;
|
|
37355
37355
|
if (commonJSPropertyAccess && resolved && ts.isIdentifier(name)) {
|
|
37356
|
-
return getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText);
|
|
37356
|
+
return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias);
|
|
37357
37357
|
}
|
|
37358
37358
|
markSymbolOfAliasDeclarationIfTypeOnly(node, undefined, resolved, false);
|
|
37359
37359
|
return resolved;
|
|
@@ -52612,6 +52612,7 @@ var ts;
|
|
|
52612
52612
|
return errorType;
|
|
52613
52613
|
}
|
|
52614
52614
|
flowDepth++;
|
|
52615
|
+
var sharedFlow;
|
|
52615
52616
|
while (true) {
|
|
52616
52617
|
var flags = flow.flags;
|
|
52617
52618
|
if (flags & 4096) {
|
|
@@ -52621,6 +52622,7 @@ var ts;
|
|
|
52621
52622
|
return sharedFlowTypes[i];
|
|
52622
52623
|
}
|
|
52623
52624
|
}
|
|
52625
|
+
sharedFlow = flow;
|
|
52624
52626
|
}
|
|
52625
52627
|
var type = void 0;
|
|
52626
52628
|
if (flags & 16) {
|
|
@@ -52680,8 +52682,8 @@ var ts;
|
|
|
52680
52682
|
else {
|
|
52681
52683
|
type = convertAutoToAny(declaredType);
|
|
52682
52684
|
}
|
|
52683
|
-
if (
|
|
52684
|
-
sharedFlowNodes[sharedFlowCount] =
|
|
52685
|
+
if (sharedFlow) {
|
|
52686
|
+
sharedFlowNodes[sharedFlowCount] = sharedFlow;
|
|
52685
52687
|
sharedFlowTypes[sharedFlowCount] = type;
|
|
52686
52688
|
sharedFlowCount++;
|
|
52687
52689
|
}
|
|
@@ -57019,9 +57021,9 @@ var ts;
|
|
|
57019
57021
|
var oldCandidatesForArgumentError = candidatesForArgumentError;
|
|
57020
57022
|
var oldCandidateForArgumentArityError = candidateForArgumentArityError;
|
|
57021
57023
|
var oldCandidateForTypeArgumentError = candidateForTypeArgumentError;
|
|
57022
|
-
var
|
|
57023
|
-
var isOverload =
|
|
57024
|
-
var implDecl = isOverload ? ts.find(
|
|
57024
|
+
var failedSignatureDeclarations = ((_b = (_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b.declarations) || ts.emptyArray;
|
|
57025
|
+
var isOverload = failedSignatureDeclarations.length > 1;
|
|
57026
|
+
var implDecl = isOverload ? ts.find(failedSignatureDeclarations, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
|
|
57025
57027
|
if (implDecl) {
|
|
57026
57028
|
var candidate = getSignatureFromDeclaration(implDecl);
|
|
57027
57029
|
var isSingleNonGenericCandidate_1 = !candidate.typeParameters;
|
package/lib/tsserver.js
CHANGED
|
@@ -94,7 +94,7 @@ var ts;
|
|
|
94
94
|
// If changing the text in this section, be sure to test `configurePrerelease` too.
|
|
95
95
|
ts.versionMajorMinor = "4.1";
|
|
96
96
|
/** The version of the TypeScript compiler release */
|
|
97
|
-
ts.version = "4.1.
|
|
97
|
+
ts.version = "4.1.3";
|
|
98
98
|
/* @internal */
|
|
99
99
|
var Comparison;
|
|
100
100
|
(function (Comparison) {
|
|
@@ -45694,7 +45694,7 @@ var ts;
|
|
|
45694
45694
|
var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
|
|
45695
45695
|
var name = node.propertyName || node.name;
|
|
45696
45696
|
if (commonJSPropertyAccess && resolved && ts.isIdentifier(name)) {
|
|
45697
|
-
return getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText);
|
|
45697
|
+
return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias);
|
|
45698
45698
|
}
|
|
45699
45699
|
markSymbolOfAliasDeclarationIfTypeOnly(node, /*immediateTarget*/ undefined, resolved, /*overwriteEmpty*/ false);
|
|
45700
45700
|
return resolved;
|
|
@@ -63123,6 +63123,7 @@ var ts;
|
|
|
63123
63123
|
return errorType;
|
|
63124
63124
|
}
|
|
63125
63125
|
flowDepth++;
|
|
63126
|
+
var sharedFlow;
|
|
63126
63127
|
while (true) {
|
|
63127
63128
|
var flags = flow.flags;
|
|
63128
63129
|
if (flags & 4096 /* Shared */) {
|
|
@@ -63135,6 +63136,7 @@ var ts;
|
|
|
63135
63136
|
return sharedFlowTypes[i];
|
|
63136
63137
|
}
|
|
63137
63138
|
}
|
|
63139
|
+
sharedFlow = flow;
|
|
63138
63140
|
}
|
|
63139
63141
|
var type = void 0;
|
|
63140
63142
|
if (flags & 16 /* Assignment */) {
|
|
@@ -63198,9 +63200,9 @@ var ts;
|
|
|
63198
63200
|
// simply return the non-auto declared type to reduce follow-on errors.
|
|
63199
63201
|
type = convertAutoToAny(declaredType);
|
|
63200
63202
|
}
|
|
63201
|
-
if (
|
|
63203
|
+
if (sharedFlow) {
|
|
63202
63204
|
// Record visited node and the associated type in the cache.
|
|
63203
|
-
sharedFlowNodes[sharedFlowCount] =
|
|
63205
|
+
sharedFlowNodes[sharedFlowCount] = sharedFlow;
|
|
63204
63206
|
sharedFlowTypes[sharedFlowCount] = type;
|
|
63205
63207
|
sharedFlowCount++;
|
|
63206
63208
|
}
|
|
@@ -68367,9 +68369,9 @@ var ts;
|
|
|
68367
68369
|
var oldCandidatesForArgumentError = candidatesForArgumentError;
|
|
68368
68370
|
var oldCandidateForArgumentArityError = candidateForArgumentArityError;
|
|
68369
68371
|
var oldCandidateForTypeArgumentError = candidateForTypeArgumentError;
|
|
68370
|
-
var
|
|
68371
|
-
var isOverload =
|
|
68372
|
-
var implDecl = isOverload ? ts.find(
|
|
68372
|
+
var failedSignatureDeclarations = ((_b = (_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b.declarations) || ts.emptyArray;
|
|
68373
|
+
var isOverload = failedSignatureDeclarations.length > 1;
|
|
68374
|
+
var implDecl = isOverload ? ts.find(failedSignatureDeclarations, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
|
|
68373
68375
|
if (implDecl) {
|
|
68374
68376
|
var candidate = getSignatureFromDeclaration(implDecl);
|
|
68375
68377
|
var isSingleNonGenericCandidate_1 = !candidate.typeParameters;
|
|
@@ -149981,6 +149983,8 @@ var ts;
|
|
|
149981
149983
|
JsxEmit["Preserve"] = "Preserve";
|
|
149982
149984
|
JsxEmit["ReactNative"] = "ReactNative";
|
|
149983
149985
|
JsxEmit["React"] = "React";
|
|
149986
|
+
JsxEmit["ReactJSX"] = "ReactJSX";
|
|
149987
|
+
JsxEmit["ReactJSXDev"] = "ReactJSXDev";
|
|
149984
149988
|
})(JsxEmit = protocol.JsxEmit || (protocol.JsxEmit = {}));
|
|
149985
149989
|
var ModuleKind;
|
|
149986
149990
|
(function (ModuleKind) {
|
|
@@ -149991,6 +149995,7 @@ var ts;
|
|
|
149991
149995
|
ModuleKind["System"] = "System";
|
|
149992
149996
|
ModuleKind["ES6"] = "ES6";
|
|
149993
149997
|
ModuleKind["ES2015"] = "ES2015";
|
|
149998
|
+
ModuleKind["ES2020"] = "ES2020";
|
|
149994
149999
|
ModuleKind["ESNext"] = "ESNext";
|
|
149995
150000
|
})(ModuleKind = protocol.ModuleKind || (protocol.ModuleKind = {}));
|
|
149996
150001
|
var ModuleResolutionKind;
|
|
@@ -150014,6 +150019,7 @@ var ts;
|
|
|
150014
150019
|
ScriptTarget["ES2018"] = "ES2018";
|
|
150015
150020
|
ScriptTarget["ES2019"] = "ES2019";
|
|
150016
150021
|
ScriptTarget["ES2020"] = "ES2020";
|
|
150022
|
+
ScriptTarget["JSON"] = "JSON";
|
|
150017
150023
|
ScriptTarget["ESNext"] = "ESNext";
|
|
150018
150024
|
})(ScriptTarget = protocol.ScriptTarget || (protocol.ScriptTarget = {}));
|
|
150019
150025
|
})(protocol = server.protocol || (server.protocol = {}));
|
|
@@ -157078,7 +157084,7 @@ var ts;
|
|
|
157078
157084
|
};
|
|
157079
157085
|
Session.prototype.getEncodedSemanticClassifications = function (args) {
|
|
157080
157086
|
var _a = this.getFileAndProject(args), file = _a.file, project = _a.project;
|
|
157081
|
-
return project.getLanguageService().getEncodedSemanticClassifications(file, args);
|
|
157087
|
+
return project.getLanguageService().getEncodedSemanticClassifications(file, args, args.format);
|
|
157082
157088
|
};
|
|
157083
157089
|
Session.prototype.getProject = function (projectFileName) {
|
|
157084
157090
|
return projectFileName === undefined ? undefined : this.projectService.findProject(projectFileName);
|
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -9084,7 +9084,9 @@ declare namespace ts.server.protocol {
|
|
|
9084
9084
|
None = "None",
|
|
9085
9085
|
Preserve = "Preserve",
|
|
9086
9086
|
ReactNative = "ReactNative",
|
|
9087
|
-
React = "React"
|
|
9087
|
+
React = "React",
|
|
9088
|
+
ReactJSX = "ReactJSX",
|
|
9089
|
+
ReactJSXDev = "ReactJSXDev"
|
|
9088
9090
|
}
|
|
9089
9091
|
enum ModuleKind {
|
|
9090
9092
|
None = "None",
|
|
@@ -9094,6 +9096,7 @@ declare namespace ts.server.protocol {
|
|
|
9094
9096
|
System = "System",
|
|
9095
9097
|
ES6 = "ES6",
|
|
9096
9098
|
ES2015 = "ES2015",
|
|
9099
|
+
ES2020 = "ES2020",
|
|
9097
9100
|
ESNext = "ESNext"
|
|
9098
9101
|
}
|
|
9099
9102
|
enum ModuleResolutionKind {
|
|
@@ -9114,6 +9117,7 @@ declare namespace ts.server.protocol {
|
|
|
9114
9117
|
ES2018 = "ES2018",
|
|
9115
9118
|
ES2019 = "ES2019",
|
|
9116
9119
|
ES2020 = "ES2020",
|
|
9120
|
+
JSON = "JSON",
|
|
9117
9121
|
ESNext = "ESNext"
|
|
9118
9122
|
}
|
|
9119
9123
|
}
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -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.
|
|
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 (
|
|
63397
|
+
if (sharedFlow) {
|
|
63396
63398
|
// Record visited node and the associated type in the cache.
|
|
63397
|
-
sharedFlowNodes[sharedFlowCount] =
|
|
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
|
|
68565
|
-
var isOverload =
|
|
68566
|
-
var implDecl = isOverload ? ts.find(
|
|
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);
|
package/lib/typescript.js
CHANGED
|
@@ -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.
|
|
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 (
|
|
63397
|
+
if (sharedFlow) {
|
|
63396
63398
|
// Record visited node and the associated type in the cache.
|
|
63397
|
-
sharedFlowNodes[sharedFlowCount] =
|
|
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
|
|
68565
|
-
var isOverload =
|
|
68566
|
-
var implDecl = isOverload ? ts.find(
|
|
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;
|
|
@@ -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.
|
|
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 (
|
|
63397
|
+
if (sharedFlow) {
|
|
63396
63398
|
// Record visited node and the associated type in the cache.
|
|
63397
|
-
sharedFlowNodes[sharedFlowCount] =
|
|
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
|
|
68565
|
-
var isOverload =
|
|
68566
|
-
var implDecl = isOverload ? ts.find(
|
|
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;
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -83,7 +83,7 @@ var ts;
|
|
|
83
83
|
// If changing the text in this section, be sure to test `configurePrerelease` too.
|
|
84
84
|
ts.versionMajorMinor = "4.1";
|
|
85
85
|
/** The version of the TypeScript compiler release */
|
|
86
|
-
ts.version = "4.1.
|
|
86
|
+
ts.version = "4.1.3";
|
|
87
87
|
/* @internal */
|
|
88
88
|
var Comparison;
|
|
89
89
|
(function (Comparison) {
|
|
@@ -45683,7 +45683,7 @@ var ts;
|
|
|
45683
45683
|
var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
|
|
45684
45684
|
var name = node.propertyName || node.name;
|
|
45685
45685
|
if (commonJSPropertyAccess && resolved && ts.isIdentifier(name)) {
|
|
45686
|
-
return getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText);
|
|
45686
|
+
return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias);
|
|
45687
45687
|
}
|
|
45688
45688
|
markSymbolOfAliasDeclarationIfTypeOnly(node, /*immediateTarget*/ undefined, resolved, /*overwriteEmpty*/ false);
|
|
45689
45689
|
return resolved;
|
|
@@ -63112,6 +63112,7 @@ var ts;
|
|
|
63112
63112
|
return errorType;
|
|
63113
63113
|
}
|
|
63114
63114
|
flowDepth++;
|
|
63115
|
+
var sharedFlow;
|
|
63115
63116
|
while (true) {
|
|
63116
63117
|
var flags = flow.flags;
|
|
63117
63118
|
if (flags & 4096 /* Shared */) {
|
|
@@ -63124,6 +63125,7 @@ var ts;
|
|
|
63124
63125
|
return sharedFlowTypes[i];
|
|
63125
63126
|
}
|
|
63126
63127
|
}
|
|
63128
|
+
sharedFlow = flow;
|
|
63127
63129
|
}
|
|
63128
63130
|
var type = void 0;
|
|
63129
63131
|
if (flags & 16 /* Assignment */) {
|
|
@@ -63187,9 +63189,9 @@ var ts;
|
|
|
63187
63189
|
// simply return the non-auto declared type to reduce follow-on errors.
|
|
63188
63190
|
type = convertAutoToAny(declaredType);
|
|
63189
63191
|
}
|
|
63190
|
-
if (
|
|
63192
|
+
if (sharedFlow) {
|
|
63191
63193
|
// Record visited node and the associated type in the cache.
|
|
63192
|
-
sharedFlowNodes[sharedFlowCount] =
|
|
63194
|
+
sharedFlowNodes[sharedFlowCount] = sharedFlow;
|
|
63193
63195
|
sharedFlowTypes[sharedFlowCount] = type;
|
|
63194
63196
|
sharedFlowCount++;
|
|
63195
63197
|
}
|
|
@@ -68356,9 +68358,9 @@ var ts;
|
|
|
68356
68358
|
var oldCandidatesForArgumentError = candidatesForArgumentError;
|
|
68357
68359
|
var oldCandidateForArgumentArityError = candidateForArgumentArityError;
|
|
68358
68360
|
var oldCandidateForTypeArgumentError = candidateForTypeArgumentError;
|
|
68359
|
-
var
|
|
68360
|
-
var isOverload =
|
|
68361
|
-
var implDecl = isOverload ? ts.find(
|
|
68361
|
+
var failedSignatureDeclarations = ((_b = (_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b.declarations) || ts.emptyArray;
|
|
68362
|
+
var isOverload = failedSignatureDeclarations.length > 1;
|
|
68363
|
+
var implDecl = isOverload ? ts.find(failedSignatureDeclarations, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
|
|
68362
68364
|
if (implDecl) {
|
|
68363
68365
|
var candidate = getSignatureFromDeclaration(implDecl);
|
|
68364
68366
|
var isSingleNonGenericCandidate_1 = !candidate.typeParameters;
|
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.1.
|
|
5
|
+
"version": "4.1.3",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|