@typescript-deploys/pr-build 5.4.0-pr-56243-5 → 5.4.0-pr-56753-16
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 -23
- package/lib/tsserver.js +19 -23
- package/lib/typescript.js +19 -23
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -50244,7 +50244,7 @@ function createTypeChecker(host) {
|
|
|
50244
50244
|
});
|
|
50245
50245
|
let addingDeclare = !bundled;
|
|
50246
50246
|
const exportEquals = symbolTable.get("export=" /* ExportEquals */);
|
|
50247
|
-
if (exportEquals && symbolTable.size > 1 && exportEquals.flags &
|
|
50247
|
+
if (exportEquals && symbolTable.size > 1 && exportEquals.flags & 2097152 /* Alias */) {
|
|
50248
50248
|
symbolTable = createSymbolTable();
|
|
50249
50249
|
symbolTable.set("export=" /* ExportEquals */, exportEquals);
|
|
50250
50250
|
}
|
|
@@ -50701,18 +50701,8 @@ function createTypeChecker(host) {
|
|
|
50701
50701
|
);
|
|
50702
50702
|
}
|
|
50703
50703
|
function getNamespaceMembersForSerialization(symbol) {
|
|
50704
|
-
|
|
50705
|
-
|
|
50706
|
-
if (merged !== symbol) {
|
|
50707
|
-
const membersSet = new Set(exports2);
|
|
50708
|
-
for (const exported of getExportsOfSymbol(merged).values()) {
|
|
50709
|
-
if (!(getSymbolFlags(resolveSymbol(exported)) & 111551 /* Value */)) {
|
|
50710
|
-
membersSet.add(exported);
|
|
50711
|
-
}
|
|
50712
|
-
}
|
|
50713
|
-
exports2 = arrayFrom(membersSet);
|
|
50714
|
-
}
|
|
50715
|
-
return filter(exports2, (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
50704
|
+
const exports2 = getExportsOfSymbol(symbol);
|
|
50705
|
+
return !exports2 ? [] : filter(arrayFrom(exports2.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
50716
50706
|
}
|
|
50717
50707
|
function isTypeOnlyNamespace(symbol) {
|
|
50718
50708
|
return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */));
|
|
@@ -52693,7 +52683,7 @@ function createTypeChecker(host) {
|
|
|
52693
52683
|
/*reportErrors*/
|
|
52694
52684
|
false
|
|
52695
52685
|
) : unknownType;
|
|
52696
|
-
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
|
|
52686
|
+
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, reportErrors2 ? 0 /* Normal */ : 1 /* Contextual */, contextualType)));
|
|
52697
52687
|
}
|
|
52698
52688
|
if (isBindingPattern(element.name)) {
|
|
52699
52689
|
return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2);
|
|
@@ -52827,18 +52817,18 @@ function createTypeChecker(host) {
|
|
|
52827
52817
|
}
|
|
52828
52818
|
return false;
|
|
52829
52819
|
}
|
|
52830
|
-
function getTypeOfVariableOrParameterOrProperty(symbol) {
|
|
52820
|
+
function getTypeOfVariableOrParameterOrProperty(symbol, checkMode) {
|
|
52831
52821
|
const links = getSymbolLinks(symbol);
|
|
52832
52822
|
if (!links.type) {
|
|
52833
|
-
const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol);
|
|
52834
|
-
if (!links.type && !isParameterOfContextSensitiveSignature(symbol)) {
|
|
52823
|
+
const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode);
|
|
52824
|
+
if (!links.type && !isParameterOfContextSensitiveSignature(symbol) && !checkMode) {
|
|
52835
52825
|
links.type = type;
|
|
52836
52826
|
}
|
|
52837
52827
|
return type;
|
|
52838
52828
|
}
|
|
52839
52829
|
return links.type;
|
|
52840
52830
|
}
|
|
52841
|
-
function getTypeOfVariableOrParameterOrPropertyWorker(symbol) {
|
|
52831
|
+
function getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode) {
|
|
52842
52832
|
if (symbol.flags & 4194304 /* Prototype */) {
|
|
52843
52833
|
return getTypeOfPrototypeProperty(symbol);
|
|
52844
52834
|
}
|
|
@@ -52876,6 +52866,9 @@ function createTypeChecker(host) {
|
|
|
52876
52866
|
if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {
|
|
52877
52867
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
52878
52868
|
}
|
|
52869
|
+
if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) {
|
|
52870
|
+
return errorType;
|
|
52871
|
+
}
|
|
52879
52872
|
return reportCircularityError(symbol);
|
|
52880
52873
|
}
|
|
52881
52874
|
let type;
|
|
@@ -52913,6 +52906,9 @@ function createTypeChecker(host) {
|
|
|
52913
52906
|
if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {
|
|
52914
52907
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
52915
52908
|
}
|
|
52909
|
+
if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) {
|
|
52910
|
+
return type;
|
|
52911
|
+
}
|
|
52916
52912
|
return reportCircularityError(symbol);
|
|
52917
52913
|
}
|
|
52918
52914
|
return type;
|
|
@@ -53141,7 +53137,7 @@ function createTypeChecker(host) {
|
|
|
53141
53137
|
}
|
|
53142
53138
|
return getTypeOfSymbol(symbol);
|
|
53143
53139
|
}
|
|
53144
|
-
function getTypeOfSymbol(symbol) {
|
|
53140
|
+
function getTypeOfSymbol(symbol, checkMode) {
|
|
53145
53141
|
const checkFlags = getCheckFlags(symbol);
|
|
53146
53142
|
if (checkFlags & 65536 /* DeferredType */) {
|
|
53147
53143
|
return getTypeOfSymbolWithDeferredType(symbol);
|
|
@@ -53156,7 +53152,7 @@ function createTypeChecker(host) {
|
|
|
53156
53152
|
return getTypeOfReverseMappedSymbol(symbol);
|
|
53157
53153
|
}
|
|
53158
53154
|
if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) {
|
|
53159
|
-
return getTypeOfVariableOrParameterOrProperty(symbol);
|
|
53155
|
+
return getTypeOfVariableOrParameterOrProperty(symbol, checkMode);
|
|
53160
53156
|
}
|
|
53161
53157
|
if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) {
|
|
53162
53158
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
@@ -67519,9 +67515,9 @@ function createTypeChecker(host) {
|
|
|
67519
67515
|
}
|
|
67520
67516
|
}
|
|
67521
67517
|
}
|
|
67522
|
-
function getNarrowedTypeOfSymbol(symbol, location) {
|
|
67518
|
+
function getNarrowedTypeOfSymbol(symbol, location, checkMode) {
|
|
67523
67519
|
var _a;
|
|
67524
|
-
const type = getTypeOfSymbol(symbol);
|
|
67520
|
+
const type = getTypeOfSymbol(symbol, checkMode);
|
|
67525
67521
|
const declaration = symbol.valueDeclaration;
|
|
67526
67522
|
if (declaration) {
|
|
67527
67523
|
if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {
|
|
@@ -67648,7 +67644,7 @@ function createTypeChecker(host) {
|
|
|
67648
67644
|
}
|
|
67649
67645
|
}
|
|
67650
67646
|
checkNestedBlockScopedBinding(node, symbol);
|
|
67651
|
-
let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node);
|
|
67647
|
+
let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node, checkMode);
|
|
67652
67648
|
const assignmentKind = getAssignmentTargetKind(node);
|
|
67653
67649
|
if (assignmentKind) {
|
|
67654
67650
|
if (!(localOrExportSymbol.flags & 3 /* Variable */) && !(isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) {
|
package/lib/tsserver.js
CHANGED
|
@@ -54982,7 +54982,7 @@ function createTypeChecker(host) {
|
|
|
54982
54982
|
});
|
|
54983
54983
|
let addingDeclare = !bundled;
|
|
54984
54984
|
const exportEquals = symbolTable.get("export=" /* ExportEquals */);
|
|
54985
|
-
if (exportEquals && symbolTable.size > 1 && exportEquals.flags &
|
|
54985
|
+
if (exportEquals && symbolTable.size > 1 && exportEquals.flags & 2097152 /* Alias */) {
|
|
54986
54986
|
symbolTable = createSymbolTable();
|
|
54987
54987
|
symbolTable.set("export=" /* ExportEquals */, exportEquals);
|
|
54988
54988
|
}
|
|
@@ -55439,18 +55439,8 @@ function createTypeChecker(host) {
|
|
|
55439
55439
|
);
|
|
55440
55440
|
}
|
|
55441
55441
|
function getNamespaceMembersForSerialization(symbol) {
|
|
55442
|
-
|
|
55443
|
-
|
|
55444
|
-
if (merged !== symbol) {
|
|
55445
|
-
const membersSet = new Set(exports2);
|
|
55446
|
-
for (const exported of getExportsOfSymbol(merged).values()) {
|
|
55447
|
-
if (!(getSymbolFlags(resolveSymbol(exported)) & 111551 /* Value */)) {
|
|
55448
|
-
membersSet.add(exported);
|
|
55449
|
-
}
|
|
55450
|
-
}
|
|
55451
|
-
exports2 = arrayFrom(membersSet);
|
|
55452
|
-
}
|
|
55453
|
-
return filter(exports2, (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
55442
|
+
const exports2 = getExportsOfSymbol(symbol);
|
|
55443
|
+
return !exports2 ? [] : filter(arrayFrom(exports2.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
55454
55444
|
}
|
|
55455
55445
|
function isTypeOnlyNamespace(symbol) {
|
|
55456
55446
|
return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */));
|
|
@@ -57431,7 +57421,7 @@ function createTypeChecker(host) {
|
|
|
57431
57421
|
/*reportErrors*/
|
|
57432
57422
|
false
|
|
57433
57423
|
) : unknownType;
|
|
57434
|
-
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
|
|
57424
|
+
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, reportErrors2 ? 0 /* Normal */ : 1 /* Contextual */, contextualType)));
|
|
57435
57425
|
}
|
|
57436
57426
|
if (isBindingPattern(element.name)) {
|
|
57437
57427
|
return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2);
|
|
@@ -57565,18 +57555,18 @@ function createTypeChecker(host) {
|
|
|
57565
57555
|
}
|
|
57566
57556
|
return false;
|
|
57567
57557
|
}
|
|
57568
|
-
function getTypeOfVariableOrParameterOrProperty(symbol) {
|
|
57558
|
+
function getTypeOfVariableOrParameterOrProperty(symbol, checkMode) {
|
|
57569
57559
|
const links = getSymbolLinks(symbol);
|
|
57570
57560
|
if (!links.type) {
|
|
57571
|
-
const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol);
|
|
57572
|
-
if (!links.type && !isParameterOfContextSensitiveSignature(symbol)) {
|
|
57561
|
+
const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode);
|
|
57562
|
+
if (!links.type && !isParameterOfContextSensitiveSignature(symbol) && !checkMode) {
|
|
57573
57563
|
links.type = type;
|
|
57574
57564
|
}
|
|
57575
57565
|
return type;
|
|
57576
57566
|
}
|
|
57577
57567
|
return links.type;
|
|
57578
57568
|
}
|
|
57579
|
-
function getTypeOfVariableOrParameterOrPropertyWorker(symbol) {
|
|
57569
|
+
function getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode) {
|
|
57580
57570
|
if (symbol.flags & 4194304 /* Prototype */) {
|
|
57581
57571
|
return getTypeOfPrototypeProperty(symbol);
|
|
57582
57572
|
}
|
|
@@ -57614,6 +57604,9 @@ function createTypeChecker(host) {
|
|
|
57614
57604
|
if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {
|
|
57615
57605
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
57616
57606
|
}
|
|
57607
|
+
if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) {
|
|
57608
|
+
return errorType;
|
|
57609
|
+
}
|
|
57617
57610
|
return reportCircularityError(symbol);
|
|
57618
57611
|
}
|
|
57619
57612
|
let type;
|
|
@@ -57651,6 +57644,9 @@ function createTypeChecker(host) {
|
|
|
57651
57644
|
if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {
|
|
57652
57645
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
57653
57646
|
}
|
|
57647
|
+
if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) {
|
|
57648
|
+
return type;
|
|
57649
|
+
}
|
|
57654
57650
|
return reportCircularityError(symbol);
|
|
57655
57651
|
}
|
|
57656
57652
|
return type;
|
|
@@ -57879,7 +57875,7 @@ function createTypeChecker(host) {
|
|
|
57879
57875
|
}
|
|
57880
57876
|
return getTypeOfSymbol(symbol);
|
|
57881
57877
|
}
|
|
57882
|
-
function getTypeOfSymbol(symbol) {
|
|
57878
|
+
function getTypeOfSymbol(symbol, checkMode) {
|
|
57883
57879
|
const checkFlags = getCheckFlags(symbol);
|
|
57884
57880
|
if (checkFlags & 65536 /* DeferredType */) {
|
|
57885
57881
|
return getTypeOfSymbolWithDeferredType(symbol);
|
|
@@ -57894,7 +57890,7 @@ function createTypeChecker(host) {
|
|
|
57894
57890
|
return getTypeOfReverseMappedSymbol(symbol);
|
|
57895
57891
|
}
|
|
57896
57892
|
if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) {
|
|
57897
|
-
return getTypeOfVariableOrParameterOrProperty(symbol);
|
|
57893
|
+
return getTypeOfVariableOrParameterOrProperty(symbol, checkMode);
|
|
57898
57894
|
}
|
|
57899
57895
|
if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) {
|
|
57900
57896
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
@@ -72257,9 +72253,9 @@ function createTypeChecker(host) {
|
|
|
72257
72253
|
}
|
|
72258
72254
|
}
|
|
72259
72255
|
}
|
|
72260
|
-
function getNarrowedTypeOfSymbol(symbol, location) {
|
|
72256
|
+
function getNarrowedTypeOfSymbol(symbol, location, checkMode) {
|
|
72261
72257
|
var _a;
|
|
72262
|
-
const type = getTypeOfSymbol(symbol);
|
|
72258
|
+
const type = getTypeOfSymbol(symbol, checkMode);
|
|
72263
72259
|
const declaration = symbol.valueDeclaration;
|
|
72264
72260
|
if (declaration) {
|
|
72265
72261
|
if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {
|
|
@@ -72386,7 +72382,7 @@ function createTypeChecker(host) {
|
|
|
72386
72382
|
}
|
|
72387
72383
|
}
|
|
72388
72384
|
checkNestedBlockScopedBinding(node, symbol);
|
|
72389
|
-
let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node);
|
|
72385
|
+
let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node, checkMode);
|
|
72390
72386
|
const assignmentKind = getAssignmentTargetKind(node);
|
|
72391
72387
|
if (assignmentKind) {
|
|
72392
72388
|
if (!(localOrExportSymbol.flags & 3 /* Variable */) && !(isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) {
|
package/lib/typescript.js
CHANGED
|
@@ -52737,7 +52737,7 @@ ${lanes.join("\n")}
|
|
|
52737
52737
|
});
|
|
52738
52738
|
let addingDeclare = !bundled;
|
|
52739
52739
|
const exportEquals = symbolTable.get("export=" /* ExportEquals */);
|
|
52740
|
-
if (exportEquals && symbolTable.size > 1 && exportEquals.flags &
|
|
52740
|
+
if (exportEquals && symbolTable.size > 1 && exportEquals.flags & 2097152 /* Alias */) {
|
|
52741
52741
|
symbolTable = createSymbolTable();
|
|
52742
52742
|
symbolTable.set("export=" /* ExportEquals */, exportEquals);
|
|
52743
52743
|
}
|
|
@@ -53194,18 +53194,8 @@ ${lanes.join("\n")}
|
|
|
53194
53194
|
);
|
|
53195
53195
|
}
|
|
53196
53196
|
function getNamespaceMembersForSerialization(symbol) {
|
|
53197
|
-
|
|
53198
|
-
|
|
53199
|
-
if (merged !== symbol) {
|
|
53200
|
-
const membersSet = new Set(exports);
|
|
53201
|
-
for (const exported of getExportsOfSymbol(merged).values()) {
|
|
53202
|
-
if (!(getSymbolFlags(resolveSymbol(exported)) & 111551 /* Value */)) {
|
|
53203
|
-
membersSet.add(exported);
|
|
53204
|
-
}
|
|
53205
|
-
}
|
|
53206
|
-
exports = arrayFrom(membersSet);
|
|
53207
|
-
}
|
|
53208
|
-
return filter(exports, (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
53197
|
+
const exports = getExportsOfSymbol(symbol);
|
|
53198
|
+
return !exports ? [] : filter(arrayFrom(exports.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
53209
53199
|
}
|
|
53210
53200
|
function isTypeOnlyNamespace(symbol) {
|
|
53211
53201
|
return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */));
|
|
@@ -55186,7 +55176,7 @@ ${lanes.join("\n")}
|
|
|
55186
55176
|
/*reportErrors*/
|
|
55187
55177
|
false
|
|
55188
55178
|
) : unknownType;
|
|
55189
|
-
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
|
|
55179
|
+
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, reportErrors2 ? 0 /* Normal */ : 1 /* Contextual */, contextualType)));
|
|
55190
55180
|
}
|
|
55191
55181
|
if (isBindingPattern(element.name)) {
|
|
55192
55182
|
return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2);
|
|
@@ -55320,18 +55310,18 @@ ${lanes.join("\n")}
|
|
|
55320
55310
|
}
|
|
55321
55311
|
return false;
|
|
55322
55312
|
}
|
|
55323
|
-
function getTypeOfVariableOrParameterOrProperty(symbol) {
|
|
55313
|
+
function getTypeOfVariableOrParameterOrProperty(symbol, checkMode) {
|
|
55324
55314
|
const links = getSymbolLinks(symbol);
|
|
55325
55315
|
if (!links.type) {
|
|
55326
|
-
const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol);
|
|
55327
|
-
if (!links.type && !isParameterOfContextSensitiveSignature(symbol)) {
|
|
55316
|
+
const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode);
|
|
55317
|
+
if (!links.type && !isParameterOfContextSensitiveSignature(symbol) && !checkMode) {
|
|
55328
55318
|
links.type = type;
|
|
55329
55319
|
}
|
|
55330
55320
|
return type;
|
|
55331
55321
|
}
|
|
55332
55322
|
return links.type;
|
|
55333
55323
|
}
|
|
55334
|
-
function getTypeOfVariableOrParameterOrPropertyWorker(symbol) {
|
|
55324
|
+
function getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode) {
|
|
55335
55325
|
if (symbol.flags & 4194304 /* Prototype */) {
|
|
55336
55326
|
return getTypeOfPrototypeProperty(symbol);
|
|
55337
55327
|
}
|
|
@@ -55369,6 +55359,9 @@ ${lanes.join("\n")}
|
|
|
55369
55359
|
if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {
|
|
55370
55360
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
55371
55361
|
}
|
|
55362
|
+
if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) {
|
|
55363
|
+
return errorType;
|
|
55364
|
+
}
|
|
55372
55365
|
return reportCircularityError(symbol);
|
|
55373
55366
|
}
|
|
55374
55367
|
let type;
|
|
@@ -55406,6 +55399,9 @@ ${lanes.join("\n")}
|
|
|
55406
55399
|
if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {
|
|
55407
55400
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
55408
55401
|
}
|
|
55402
|
+
if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) {
|
|
55403
|
+
return type;
|
|
55404
|
+
}
|
|
55409
55405
|
return reportCircularityError(symbol);
|
|
55410
55406
|
}
|
|
55411
55407
|
return type;
|
|
@@ -55634,7 +55630,7 @@ ${lanes.join("\n")}
|
|
|
55634
55630
|
}
|
|
55635
55631
|
return getTypeOfSymbol(symbol);
|
|
55636
55632
|
}
|
|
55637
|
-
function getTypeOfSymbol(symbol) {
|
|
55633
|
+
function getTypeOfSymbol(symbol, checkMode) {
|
|
55638
55634
|
const checkFlags = getCheckFlags(symbol);
|
|
55639
55635
|
if (checkFlags & 65536 /* DeferredType */) {
|
|
55640
55636
|
return getTypeOfSymbolWithDeferredType(symbol);
|
|
@@ -55649,7 +55645,7 @@ ${lanes.join("\n")}
|
|
|
55649
55645
|
return getTypeOfReverseMappedSymbol(symbol);
|
|
55650
55646
|
}
|
|
55651
55647
|
if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) {
|
|
55652
|
-
return getTypeOfVariableOrParameterOrProperty(symbol);
|
|
55648
|
+
return getTypeOfVariableOrParameterOrProperty(symbol, checkMode);
|
|
55653
55649
|
}
|
|
55654
55650
|
if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) {
|
|
55655
55651
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
@@ -70012,9 +70008,9 @@ ${lanes.join("\n")}
|
|
|
70012
70008
|
}
|
|
70013
70009
|
}
|
|
70014
70010
|
}
|
|
70015
|
-
function getNarrowedTypeOfSymbol(symbol, location) {
|
|
70011
|
+
function getNarrowedTypeOfSymbol(symbol, location, checkMode) {
|
|
70016
70012
|
var _a;
|
|
70017
|
-
const type = getTypeOfSymbol(symbol);
|
|
70013
|
+
const type = getTypeOfSymbol(symbol, checkMode);
|
|
70018
70014
|
const declaration = symbol.valueDeclaration;
|
|
70019
70015
|
if (declaration) {
|
|
70020
70016
|
if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {
|
|
@@ -70141,7 +70137,7 @@ ${lanes.join("\n")}
|
|
|
70141
70137
|
}
|
|
70142
70138
|
}
|
|
70143
70139
|
checkNestedBlockScopedBinding(node, symbol);
|
|
70144
|
-
let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node);
|
|
70140
|
+
let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node, checkMode);
|
|
70145
70141
|
const assignmentKind = getAssignmentTargetKind(node);
|
|
70146
70142
|
if (assignmentKind) {
|
|
70147
70143
|
if (!(localOrExportSymbol.flags & 3 /* Variable */) && !(isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) {
|
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.4.0-pr-
|
|
5
|
+
"version": "5.4.0-pr-56753-16",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "c4cd94a606f3058158051f20dc3ba16d247d9fa1"
|
|
118
118
|
}
|