@typescript-deploys/pr-build 5.0.0-pr-52696-39 → 5.0.0-pr-52728-5
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 +19 -22
- package/lib/tsserver.js +19 -22
- package/lib/tsserverlibrary.js +19 -22
- package/lib/typescript.js +19 -22
- package/lib/typingsInstaller.js +1 -1
- package/package.json +1 -1
package/lib/tsc.js
CHANGED
|
@@ -23,7 +23,7 @@ var __export = (target, all) => {
|
|
|
23
23
|
|
|
24
24
|
// src/compiler/corePublic.ts
|
|
25
25
|
var versionMajorMinor = "5.0";
|
|
26
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
26
|
+
var version = `${versionMajorMinor}.0-insiders.20230216`;
|
|
27
27
|
|
|
28
28
|
// src/compiler/core.ts
|
|
29
29
|
var emptyArray = [];
|
|
@@ -42584,6 +42584,7 @@ function createTypeChecker(host) {
|
|
|
42584
42584
|
let inlineLevel = 0;
|
|
42585
42585
|
let currentNode;
|
|
42586
42586
|
let varianceTypeParameter;
|
|
42587
|
+
let isInferencePartiallyBlocked = false;
|
|
42587
42588
|
const emptySymbols = createSymbolTable();
|
|
42588
42589
|
const arrayVariances = [1 /* Covariant */];
|
|
42589
42590
|
const compilerOptions = host.getCompilerOptions();
|
|
@@ -43006,7 +43007,9 @@ function createTypeChecker(host) {
|
|
|
43006
43007
|
} while (toMarkSkip && toMarkSkip !== containingCall);
|
|
43007
43008
|
getNodeLinks(containingCall).resolvedSignature = void 0;
|
|
43008
43009
|
}
|
|
43010
|
+
isInferencePartiallyBlocked = true;
|
|
43009
43011
|
const result = fn();
|
|
43012
|
+
isInferencePartiallyBlocked = false;
|
|
43010
43013
|
if (containingCall) {
|
|
43011
43014
|
let toMarkSkip = node;
|
|
43012
43015
|
do {
|
|
@@ -50466,8 +50469,6 @@ function createTypeChecker(host) {
|
|
|
50466
50469
|
return !!target.baseTypesResolved;
|
|
50467
50470
|
case 8 /* WriteType */:
|
|
50468
50471
|
return !!getSymbolLinks(target).writeType;
|
|
50469
|
-
case 9 /* ParameterInitializerContainsUndefined */:
|
|
50470
|
-
return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0;
|
|
50471
50472
|
}
|
|
50472
50473
|
return Debug.assertNever(propertyName);
|
|
50473
50474
|
}
|
|
@@ -65300,25 +65301,15 @@ function createTypeChecker(host) {
|
|
|
65300
65301
|
function isConstVariable(symbol) {
|
|
65301
65302
|
return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0;
|
|
65302
65303
|
}
|
|
65303
|
-
function parameterInitializerContainsUndefined(declaration) {
|
|
65304
|
-
const links = getNodeLinks(declaration);
|
|
65305
|
-
if (links.parameterInitializerContainsUndefined === void 0) {
|
|
65306
|
-
if (!pushTypeResolution(declaration, 9 /* ParameterInitializerContainsUndefined */)) {
|
|
65307
|
-
reportCircularityError(declaration.symbol);
|
|
65308
|
-
return true;
|
|
65309
|
-
}
|
|
65310
|
-
const containsUndefined = !!(getTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */)) & 16777216 /* IsUndefined */);
|
|
65311
|
-
if (!popTypeResolution()) {
|
|
65312
|
-
reportCircularityError(declaration.symbol);
|
|
65313
|
-
return true;
|
|
65314
|
-
}
|
|
65315
|
-
links.parameterInitializerContainsUndefined = containsUndefined;
|
|
65316
|
-
}
|
|
65317
|
-
return links.parameterInitializerContainsUndefined;
|
|
65318
|
-
}
|
|
65319
65304
|
function removeOptionalityFromDeclaredType(declaredType, declaration) {
|
|
65320
|
-
|
|
65321
|
-
|
|
65305
|
+
if (pushTypeResolution(declaration.symbol, 2 /* DeclaredType */)) {
|
|
65306
|
+
const annotationIncludesUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !(getTypeFacts(checkExpression(declaration.initializer)) & 16777216 /* IsUndefined */);
|
|
65307
|
+
popTypeResolution();
|
|
65308
|
+
return annotationIncludesUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
|
|
65309
|
+
} else {
|
|
65310
|
+
reportCircularityError(declaration.symbol);
|
|
65311
|
+
return declaredType;
|
|
65312
|
+
}
|
|
65322
65313
|
}
|
|
65323
65314
|
function isConstraintPosition(type, node) {
|
|
65324
65315
|
const parent = node.parent;
|
|
@@ -69615,7 +69606,7 @@ function createTypeChecker(host) {
|
|
|
69615
69606
|
const isTaggedTemplate = node.kind === 212 /* TaggedTemplateExpression */;
|
|
69616
69607
|
const isDecorator2 = node.kind === 167 /* Decorator */;
|
|
69617
69608
|
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
|
|
69618
|
-
const reportErrors2 = !candidatesOutArray;
|
|
69609
|
+
const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;
|
|
69619
69610
|
let typeArguments;
|
|
69620
69611
|
if (!isDecorator2 && !isSuperCall(node)) {
|
|
69621
69612
|
typeArguments = node.typeArguments;
|
|
@@ -74824,6 +74815,9 @@ function createTypeChecker(host) {
|
|
|
74824
74815
|
case 273 /* ImportSpecifier */:
|
|
74825
74816
|
case 79 /* Identifier */:
|
|
74826
74817
|
return 1 /* ExportValue */;
|
|
74818
|
+
case 170 /* MethodSignature */:
|
|
74819
|
+
case 168 /* PropertySignature */:
|
|
74820
|
+
return 2 /* ExportType */;
|
|
74827
74821
|
default:
|
|
74828
74822
|
return Debug.failBadSyntaxKind(d);
|
|
74829
74823
|
}
|
|
@@ -79207,6 +79201,8 @@ function createTypeChecker(host) {
|
|
|
79207
79201
|
if (!(links.flags & 1 /* TypeChecked */)) {
|
|
79208
79202
|
links.deferredNodes || (links.deferredNodes = /* @__PURE__ */ new Set());
|
|
79209
79203
|
links.deferredNodes.add(node);
|
|
79204
|
+
} else {
|
|
79205
|
+
Debug.assert(!links.deferredNodes, "A type-checked file should have no deferred nodes.");
|
|
79210
79206
|
}
|
|
79211
79207
|
}
|
|
79212
79208
|
function checkDeferredNodes(context) {
|
|
@@ -79214,6 +79210,7 @@ function createTypeChecker(host) {
|
|
|
79214
79210
|
if (links.deferredNodes) {
|
|
79215
79211
|
links.deferredNodes.forEach(checkDeferredNode);
|
|
79216
79212
|
}
|
|
79213
|
+
links.deferredNodes = void 0;
|
|
79217
79214
|
}
|
|
79218
79215
|
function checkDeferredNode(node) {
|
|
79219
79216
|
var _a2, _b;
|
package/lib/tsserver.js
CHANGED
|
@@ -2287,7 +2287,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2287
2287
|
|
|
2288
2288
|
// src/compiler/corePublic.ts
|
|
2289
2289
|
var versionMajorMinor = "5.0";
|
|
2290
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2290
|
+
var version = `${versionMajorMinor}.0-insiders.20230216`;
|
|
2291
2291
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2292
2292
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2293
2293
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -47160,6 +47160,7 @@ function createTypeChecker(host) {
|
|
|
47160
47160
|
let inlineLevel = 0;
|
|
47161
47161
|
let currentNode;
|
|
47162
47162
|
let varianceTypeParameter;
|
|
47163
|
+
let isInferencePartiallyBlocked = false;
|
|
47163
47164
|
const emptySymbols = createSymbolTable();
|
|
47164
47165
|
const arrayVariances = [1 /* Covariant */];
|
|
47165
47166
|
const compilerOptions = host.getCompilerOptions();
|
|
@@ -47582,7 +47583,9 @@ function createTypeChecker(host) {
|
|
|
47582
47583
|
} while (toMarkSkip && toMarkSkip !== containingCall);
|
|
47583
47584
|
getNodeLinks(containingCall).resolvedSignature = void 0;
|
|
47584
47585
|
}
|
|
47586
|
+
isInferencePartiallyBlocked = true;
|
|
47585
47587
|
const result = fn();
|
|
47588
|
+
isInferencePartiallyBlocked = false;
|
|
47586
47589
|
if (containingCall) {
|
|
47587
47590
|
let toMarkSkip = node;
|
|
47588
47591
|
do {
|
|
@@ -55042,8 +55045,6 @@ function createTypeChecker(host) {
|
|
|
55042
55045
|
return !!target.baseTypesResolved;
|
|
55043
55046
|
case 8 /* WriteType */:
|
|
55044
55047
|
return !!getSymbolLinks(target).writeType;
|
|
55045
|
-
case 9 /* ParameterInitializerContainsUndefined */:
|
|
55046
|
-
return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0;
|
|
55047
55048
|
}
|
|
55048
55049
|
return Debug.assertNever(propertyName);
|
|
55049
55050
|
}
|
|
@@ -69876,25 +69877,15 @@ function createTypeChecker(host) {
|
|
|
69876
69877
|
function isConstVariable(symbol) {
|
|
69877
69878
|
return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0;
|
|
69878
69879
|
}
|
|
69879
|
-
function parameterInitializerContainsUndefined(declaration) {
|
|
69880
|
-
const links = getNodeLinks(declaration);
|
|
69881
|
-
if (links.parameterInitializerContainsUndefined === void 0) {
|
|
69882
|
-
if (!pushTypeResolution(declaration, 9 /* ParameterInitializerContainsUndefined */)) {
|
|
69883
|
-
reportCircularityError(declaration.symbol);
|
|
69884
|
-
return true;
|
|
69885
|
-
}
|
|
69886
|
-
const containsUndefined = !!(getTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */)) & 16777216 /* IsUndefined */);
|
|
69887
|
-
if (!popTypeResolution()) {
|
|
69888
|
-
reportCircularityError(declaration.symbol);
|
|
69889
|
-
return true;
|
|
69890
|
-
}
|
|
69891
|
-
links.parameterInitializerContainsUndefined = containsUndefined;
|
|
69892
|
-
}
|
|
69893
|
-
return links.parameterInitializerContainsUndefined;
|
|
69894
|
-
}
|
|
69895
69880
|
function removeOptionalityFromDeclaredType(declaredType, declaration) {
|
|
69896
|
-
|
|
69897
|
-
|
|
69881
|
+
if (pushTypeResolution(declaration.symbol, 2 /* DeclaredType */)) {
|
|
69882
|
+
const annotationIncludesUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !(getTypeFacts(checkExpression(declaration.initializer)) & 16777216 /* IsUndefined */);
|
|
69883
|
+
popTypeResolution();
|
|
69884
|
+
return annotationIncludesUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
|
|
69885
|
+
} else {
|
|
69886
|
+
reportCircularityError(declaration.symbol);
|
|
69887
|
+
return declaredType;
|
|
69888
|
+
}
|
|
69898
69889
|
}
|
|
69899
69890
|
function isConstraintPosition(type, node) {
|
|
69900
69891
|
const parent2 = node.parent;
|
|
@@ -74191,7 +74182,7 @@ function createTypeChecker(host) {
|
|
|
74191
74182
|
const isTaggedTemplate = node.kind === 212 /* TaggedTemplateExpression */;
|
|
74192
74183
|
const isDecorator2 = node.kind === 167 /* Decorator */;
|
|
74193
74184
|
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
|
|
74194
|
-
const reportErrors2 = !candidatesOutArray;
|
|
74185
|
+
const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;
|
|
74195
74186
|
let typeArguments;
|
|
74196
74187
|
if (!isDecorator2 && !isSuperCall(node)) {
|
|
74197
74188
|
typeArguments = node.typeArguments;
|
|
@@ -79400,6 +79391,9 @@ function createTypeChecker(host) {
|
|
|
79400
79391
|
case 273 /* ImportSpecifier */:
|
|
79401
79392
|
case 79 /* Identifier */:
|
|
79402
79393
|
return 1 /* ExportValue */;
|
|
79394
|
+
case 170 /* MethodSignature */:
|
|
79395
|
+
case 168 /* PropertySignature */:
|
|
79396
|
+
return 2 /* ExportType */;
|
|
79403
79397
|
default:
|
|
79404
79398
|
return Debug.failBadSyntaxKind(d);
|
|
79405
79399
|
}
|
|
@@ -83783,6 +83777,8 @@ function createTypeChecker(host) {
|
|
|
83783
83777
|
if (!(links.flags & 1 /* TypeChecked */)) {
|
|
83784
83778
|
links.deferredNodes || (links.deferredNodes = /* @__PURE__ */ new Set());
|
|
83785
83779
|
links.deferredNodes.add(node);
|
|
83780
|
+
} else {
|
|
83781
|
+
Debug.assert(!links.deferredNodes, "A type-checked file should have no deferred nodes.");
|
|
83786
83782
|
}
|
|
83787
83783
|
}
|
|
83788
83784
|
function checkDeferredNodes(context) {
|
|
@@ -83790,6 +83786,7 @@ function createTypeChecker(host) {
|
|
|
83790
83786
|
if (links.deferredNodes) {
|
|
83791
83787
|
links.deferredNodes.forEach(checkDeferredNode);
|
|
83792
83788
|
}
|
|
83789
|
+
links.deferredNodes = void 0;
|
|
83793
83790
|
}
|
|
83794
83791
|
function checkDeferredNode(node) {
|
|
83795
83792
|
var _a2, _b;
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.0";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230216`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -44970,6 +44970,7 @@ ${lanes.join("\n")}
|
|
|
44970
44970
|
let inlineLevel = 0;
|
|
44971
44971
|
let currentNode;
|
|
44972
44972
|
let varianceTypeParameter;
|
|
44973
|
+
let isInferencePartiallyBlocked = false;
|
|
44973
44974
|
const emptySymbols = createSymbolTable();
|
|
44974
44975
|
const arrayVariances = [1 /* Covariant */];
|
|
44975
44976
|
const compilerOptions = host.getCompilerOptions();
|
|
@@ -45392,7 +45393,9 @@ ${lanes.join("\n")}
|
|
|
45392
45393
|
} while (toMarkSkip && toMarkSkip !== containingCall);
|
|
45393
45394
|
getNodeLinks(containingCall).resolvedSignature = void 0;
|
|
45394
45395
|
}
|
|
45396
|
+
isInferencePartiallyBlocked = true;
|
|
45395
45397
|
const result = fn();
|
|
45398
|
+
isInferencePartiallyBlocked = false;
|
|
45396
45399
|
if (containingCall) {
|
|
45397
45400
|
let toMarkSkip = node;
|
|
45398
45401
|
do {
|
|
@@ -52852,8 +52855,6 @@ ${lanes.join("\n")}
|
|
|
52852
52855
|
return !!target.baseTypesResolved;
|
|
52853
52856
|
case 8 /* WriteType */:
|
|
52854
52857
|
return !!getSymbolLinks(target).writeType;
|
|
52855
|
-
case 9 /* ParameterInitializerContainsUndefined */:
|
|
52856
|
-
return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0;
|
|
52857
52858
|
}
|
|
52858
52859
|
return Debug.assertNever(propertyName);
|
|
52859
52860
|
}
|
|
@@ -67686,25 +67687,15 @@ ${lanes.join("\n")}
|
|
|
67686
67687
|
function isConstVariable(symbol) {
|
|
67687
67688
|
return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0;
|
|
67688
67689
|
}
|
|
67689
|
-
function parameterInitializerContainsUndefined(declaration) {
|
|
67690
|
-
const links = getNodeLinks(declaration);
|
|
67691
|
-
if (links.parameterInitializerContainsUndefined === void 0) {
|
|
67692
|
-
if (!pushTypeResolution(declaration, 9 /* ParameterInitializerContainsUndefined */)) {
|
|
67693
|
-
reportCircularityError(declaration.symbol);
|
|
67694
|
-
return true;
|
|
67695
|
-
}
|
|
67696
|
-
const containsUndefined = !!(getTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */)) & 16777216 /* IsUndefined */);
|
|
67697
|
-
if (!popTypeResolution()) {
|
|
67698
|
-
reportCircularityError(declaration.symbol);
|
|
67699
|
-
return true;
|
|
67700
|
-
}
|
|
67701
|
-
links.parameterInitializerContainsUndefined = containsUndefined;
|
|
67702
|
-
}
|
|
67703
|
-
return links.parameterInitializerContainsUndefined;
|
|
67704
|
-
}
|
|
67705
67690
|
function removeOptionalityFromDeclaredType(declaredType, declaration) {
|
|
67706
|
-
|
|
67707
|
-
|
|
67691
|
+
if (pushTypeResolution(declaration.symbol, 2 /* DeclaredType */)) {
|
|
67692
|
+
const annotationIncludesUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !(getTypeFacts(checkExpression(declaration.initializer)) & 16777216 /* IsUndefined */);
|
|
67693
|
+
popTypeResolution();
|
|
67694
|
+
return annotationIncludesUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
|
|
67695
|
+
} else {
|
|
67696
|
+
reportCircularityError(declaration.symbol);
|
|
67697
|
+
return declaredType;
|
|
67698
|
+
}
|
|
67708
67699
|
}
|
|
67709
67700
|
function isConstraintPosition(type, node) {
|
|
67710
67701
|
const parent2 = node.parent;
|
|
@@ -72001,7 +71992,7 @@ ${lanes.join("\n")}
|
|
|
72001
71992
|
const isTaggedTemplate = node.kind === 212 /* TaggedTemplateExpression */;
|
|
72002
71993
|
const isDecorator2 = node.kind === 167 /* Decorator */;
|
|
72003
71994
|
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
|
|
72004
|
-
const reportErrors2 = !candidatesOutArray;
|
|
71995
|
+
const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;
|
|
72005
71996
|
let typeArguments;
|
|
72006
71997
|
if (!isDecorator2 && !isSuperCall(node)) {
|
|
72007
71998
|
typeArguments = node.typeArguments;
|
|
@@ -77210,6 +77201,9 @@ ${lanes.join("\n")}
|
|
|
77210
77201
|
case 273 /* ImportSpecifier */:
|
|
77211
77202
|
case 79 /* Identifier */:
|
|
77212
77203
|
return 1 /* ExportValue */;
|
|
77204
|
+
case 170 /* MethodSignature */:
|
|
77205
|
+
case 168 /* PropertySignature */:
|
|
77206
|
+
return 2 /* ExportType */;
|
|
77213
77207
|
default:
|
|
77214
77208
|
return Debug.failBadSyntaxKind(d);
|
|
77215
77209
|
}
|
|
@@ -81593,6 +81587,8 @@ ${lanes.join("\n")}
|
|
|
81593
81587
|
if (!(links.flags & 1 /* TypeChecked */)) {
|
|
81594
81588
|
links.deferredNodes || (links.deferredNodes = /* @__PURE__ */ new Set());
|
|
81595
81589
|
links.deferredNodes.add(node);
|
|
81590
|
+
} else {
|
|
81591
|
+
Debug.assert(!links.deferredNodes, "A type-checked file should have no deferred nodes.");
|
|
81596
81592
|
}
|
|
81597
81593
|
}
|
|
81598
81594
|
function checkDeferredNodes(context) {
|
|
@@ -81600,6 +81596,7 @@ ${lanes.join("\n")}
|
|
|
81600
81596
|
if (links.deferredNodes) {
|
|
81601
81597
|
links.deferredNodes.forEach(checkDeferredNode);
|
|
81602
81598
|
}
|
|
81599
|
+
links.deferredNodes = void 0;
|
|
81603
81600
|
}
|
|
81604
81601
|
function checkDeferredNode(node) {
|
|
81605
81602
|
var _a2, _b;
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.0";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230216`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -44970,6 +44970,7 @@ ${lanes.join("\n")}
|
|
|
44970
44970
|
let inlineLevel = 0;
|
|
44971
44971
|
let currentNode;
|
|
44972
44972
|
let varianceTypeParameter;
|
|
44973
|
+
let isInferencePartiallyBlocked = false;
|
|
44973
44974
|
const emptySymbols = createSymbolTable();
|
|
44974
44975
|
const arrayVariances = [1 /* Covariant */];
|
|
44975
44976
|
const compilerOptions = host.getCompilerOptions();
|
|
@@ -45392,7 +45393,9 @@ ${lanes.join("\n")}
|
|
|
45392
45393
|
} while (toMarkSkip && toMarkSkip !== containingCall);
|
|
45393
45394
|
getNodeLinks(containingCall).resolvedSignature = void 0;
|
|
45394
45395
|
}
|
|
45396
|
+
isInferencePartiallyBlocked = true;
|
|
45395
45397
|
const result = fn();
|
|
45398
|
+
isInferencePartiallyBlocked = false;
|
|
45396
45399
|
if (containingCall) {
|
|
45397
45400
|
let toMarkSkip = node;
|
|
45398
45401
|
do {
|
|
@@ -52852,8 +52855,6 @@ ${lanes.join("\n")}
|
|
|
52852
52855
|
return !!target.baseTypesResolved;
|
|
52853
52856
|
case 8 /* WriteType */:
|
|
52854
52857
|
return !!getSymbolLinks(target).writeType;
|
|
52855
|
-
case 9 /* ParameterInitializerContainsUndefined */:
|
|
52856
|
-
return getNodeLinks(target).parameterInitializerContainsUndefined !== void 0;
|
|
52857
52858
|
}
|
|
52858
52859
|
return Debug.assertNever(propertyName);
|
|
52859
52860
|
}
|
|
@@ -67686,25 +67687,15 @@ ${lanes.join("\n")}
|
|
|
67686
67687
|
function isConstVariable(symbol) {
|
|
67687
67688
|
return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0;
|
|
67688
67689
|
}
|
|
67689
|
-
function parameterInitializerContainsUndefined(declaration) {
|
|
67690
|
-
const links = getNodeLinks(declaration);
|
|
67691
|
-
if (links.parameterInitializerContainsUndefined === void 0) {
|
|
67692
|
-
if (!pushTypeResolution(declaration, 9 /* ParameterInitializerContainsUndefined */)) {
|
|
67693
|
-
reportCircularityError(declaration.symbol);
|
|
67694
|
-
return true;
|
|
67695
|
-
}
|
|
67696
|
-
const containsUndefined = !!(getTypeFacts(checkDeclarationInitializer(declaration, 0 /* Normal */)) & 16777216 /* IsUndefined */);
|
|
67697
|
-
if (!popTypeResolution()) {
|
|
67698
|
-
reportCircularityError(declaration.symbol);
|
|
67699
|
-
return true;
|
|
67700
|
-
}
|
|
67701
|
-
links.parameterInitializerContainsUndefined = containsUndefined;
|
|
67702
|
-
}
|
|
67703
|
-
return links.parameterInitializerContainsUndefined;
|
|
67704
|
-
}
|
|
67705
67690
|
function removeOptionalityFromDeclaredType(declaredType, declaration) {
|
|
67706
|
-
|
|
67707
|
-
|
|
67691
|
+
if (pushTypeResolution(declaration.symbol, 2 /* DeclaredType */)) {
|
|
67692
|
+
const annotationIncludesUndefined = strictNullChecks && declaration.kind === 166 /* Parameter */ && declaration.initializer && getTypeFacts(declaredType) & 16777216 /* IsUndefined */ && !(getTypeFacts(checkExpression(declaration.initializer)) & 16777216 /* IsUndefined */);
|
|
67693
|
+
popTypeResolution();
|
|
67694
|
+
return annotationIncludesUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;
|
|
67695
|
+
} else {
|
|
67696
|
+
reportCircularityError(declaration.symbol);
|
|
67697
|
+
return declaredType;
|
|
67698
|
+
}
|
|
67708
67699
|
}
|
|
67709
67700
|
function isConstraintPosition(type, node) {
|
|
67710
67701
|
const parent2 = node.parent;
|
|
@@ -72001,7 +71992,7 @@ ${lanes.join("\n")}
|
|
|
72001
71992
|
const isTaggedTemplate = node.kind === 212 /* TaggedTemplateExpression */;
|
|
72002
71993
|
const isDecorator2 = node.kind === 167 /* Decorator */;
|
|
72003
71994
|
const isJsxOpeningOrSelfClosingElement = isJsxOpeningLikeElement(node);
|
|
72004
|
-
const reportErrors2 = !candidatesOutArray;
|
|
71995
|
+
const reportErrors2 = !isInferencePartiallyBlocked && !candidatesOutArray;
|
|
72005
71996
|
let typeArguments;
|
|
72006
71997
|
if (!isDecorator2 && !isSuperCall(node)) {
|
|
72007
71998
|
typeArguments = node.typeArguments;
|
|
@@ -77210,6 +77201,9 @@ ${lanes.join("\n")}
|
|
|
77210
77201
|
case 273 /* ImportSpecifier */:
|
|
77211
77202
|
case 79 /* Identifier */:
|
|
77212
77203
|
return 1 /* ExportValue */;
|
|
77204
|
+
case 170 /* MethodSignature */:
|
|
77205
|
+
case 168 /* PropertySignature */:
|
|
77206
|
+
return 2 /* ExportType */;
|
|
77213
77207
|
default:
|
|
77214
77208
|
return Debug.failBadSyntaxKind(d);
|
|
77215
77209
|
}
|
|
@@ -81593,6 +81587,8 @@ ${lanes.join("\n")}
|
|
|
81593
81587
|
if (!(links.flags & 1 /* TypeChecked */)) {
|
|
81594
81588
|
links.deferredNodes || (links.deferredNodes = /* @__PURE__ */ new Set());
|
|
81595
81589
|
links.deferredNodes.add(node);
|
|
81590
|
+
} else {
|
|
81591
|
+
Debug.assert(!links.deferredNodes, "A type-checked file should have no deferred nodes.");
|
|
81596
81592
|
}
|
|
81597
81593
|
}
|
|
81598
81594
|
function checkDeferredNodes(context) {
|
|
@@ -81600,6 +81596,7 @@ ${lanes.join("\n")}
|
|
|
81600
81596
|
if (links.deferredNodes) {
|
|
81601
81597
|
links.deferredNodes.forEach(checkDeferredNode);
|
|
81602
81598
|
}
|
|
81599
|
+
links.deferredNodes = void 0;
|
|
81603
81600
|
}
|
|
81604
81601
|
function checkDeferredNode(node) {
|
|
81605
81602
|
var _a2, _b;
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.0";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230216`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.0.0-pr-
|
|
5
|
+
"version": "5.0.0-pr-52728-5",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|