@typescript-deploys/pr-build 5.4.0-pr-57008-7 → 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 +17 -24
- package/lib/tsserver.js +17 -24
- package/lib/typescript.js +17 -24
- package/lib/typingsInstaller.js +1 -14
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -9107,20 +9107,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
9107
9107
|
}
|
|
9108
9108
|
const ch = codePointAt(text, pos);
|
|
9109
9109
|
if (pos === 0) {
|
|
9110
|
-
|
|
9111
|
-
if (ch === 71 /* G */) {
|
|
9112
|
-
const end2 = Math.min(text.length, pos + 188);
|
|
9113
|
-
let i = pos + charSize(ch);
|
|
9114
|
-
while (i < end2) {
|
|
9115
|
-
const ch2 = codePointAt(text, i);
|
|
9116
|
-
if (codePointAt(text, i) === 65533 /* replacementCharacter */) {
|
|
9117
|
-
isBinary = true;
|
|
9118
|
-
break;
|
|
9119
|
-
}
|
|
9120
|
-
i += charSize(ch2);
|
|
9121
|
-
}
|
|
9122
|
-
}
|
|
9123
|
-
if (isBinary) {
|
|
9110
|
+
if (ch === 65533 /* replacementCharacter */) {
|
|
9124
9111
|
error(Diagnostics.File_appears_to_be_binary);
|
|
9125
9112
|
pos = end;
|
|
9126
9113
|
return token = 8 /* NonTextFileMarkerTrivia */;
|
|
@@ -52696,7 +52683,7 @@ function createTypeChecker(host) {
|
|
|
52696
52683
|
/*reportErrors*/
|
|
52697
52684
|
false
|
|
52698
52685
|
) : unknownType;
|
|
52699
|
-
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
|
|
52686
|
+
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, reportErrors2 ? 0 /* Normal */ : 1 /* Contextual */, contextualType)));
|
|
52700
52687
|
}
|
|
52701
52688
|
if (isBindingPattern(element.name)) {
|
|
52702
52689
|
return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2);
|
|
@@ -52830,18 +52817,18 @@ function createTypeChecker(host) {
|
|
|
52830
52817
|
}
|
|
52831
52818
|
return false;
|
|
52832
52819
|
}
|
|
52833
|
-
function getTypeOfVariableOrParameterOrProperty(symbol) {
|
|
52820
|
+
function getTypeOfVariableOrParameterOrProperty(symbol, checkMode) {
|
|
52834
52821
|
const links = getSymbolLinks(symbol);
|
|
52835
52822
|
if (!links.type) {
|
|
52836
|
-
const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol);
|
|
52837
|
-
if (!links.type && !isParameterOfContextSensitiveSignature(symbol)) {
|
|
52823
|
+
const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode);
|
|
52824
|
+
if (!links.type && !isParameterOfContextSensitiveSignature(symbol) && !checkMode) {
|
|
52838
52825
|
links.type = type;
|
|
52839
52826
|
}
|
|
52840
52827
|
return type;
|
|
52841
52828
|
}
|
|
52842
52829
|
return links.type;
|
|
52843
52830
|
}
|
|
52844
|
-
function getTypeOfVariableOrParameterOrPropertyWorker(symbol) {
|
|
52831
|
+
function getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode) {
|
|
52845
52832
|
if (symbol.flags & 4194304 /* Prototype */) {
|
|
52846
52833
|
return getTypeOfPrototypeProperty(symbol);
|
|
52847
52834
|
}
|
|
@@ -52879,6 +52866,9 @@ function createTypeChecker(host) {
|
|
|
52879
52866
|
if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {
|
|
52880
52867
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
52881
52868
|
}
|
|
52869
|
+
if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) {
|
|
52870
|
+
return errorType;
|
|
52871
|
+
}
|
|
52882
52872
|
return reportCircularityError(symbol);
|
|
52883
52873
|
}
|
|
52884
52874
|
let type;
|
|
@@ -52916,6 +52906,9 @@ function createTypeChecker(host) {
|
|
|
52916
52906
|
if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {
|
|
52917
52907
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
52918
52908
|
}
|
|
52909
|
+
if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) {
|
|
52910
|
+
return type;
|
|
52911
|
+
}
|
|
52919
52912
|
return reportCircularityError(symbol);
|
|
52920
52913
|
}
|
|
52921
52914
|
return type;
|
|
@@ -53144,7 +53137,7 @@ function createTypeChecker(host) {
|
|
|
53144
53137
|
}
|
|
53145
53138
|
return getTypeOfSymbol(symbol);
|
|
53146
53139
|
}
|
|
53147
|
-
function getTypeOfSymbol(symbol) {
|
|
53140
|
+
function getTypeOfSymbol(symbol, checkMode) {
|
|
53148
53141
|
const checkFlags = getCheckFlags(symbol);
|
|
53149
53142
|
if (checkFlags & 65536 /* DeferredType */) {
|
|
53150
53143
|
return getTypeOfSymbolWithDeferredType(symbol);
|
|
@@ -53159,7 +53152,7 @@ function createTypeChecker(host) {
|
|
|
53159
53152
|
return getTypeOfReverseMappedSymbol(symbol);
|
|
53160
53153
|
}
|
|
53161
53154
|
if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) {
|
|
53162
|
-
return getTypeOfVariableOrParameterOrProperty(symbol);
|
|
53155
|
+
return getTypeOfVariableOrParameterOrProperty(symbol, checkMode);
|
|
53163
53156
|
}
|
|
53164
53157
|
if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) {
|
|
53165
53158
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
@@ -67522,9 +67515,9 @@ function createTypeChecker(host) {
|
|
|
67522
67515
|
}
|
|
67523
67516
|
}
|
|
67524
67517
|
}
|
|
67525
|
-
function getNarrowedTypeOfSymbol(symbol, location) {
|
|
67518
|
+
function getNarrowedTypeOfSymbol(symbol, location, checkMode) {
|
|
67526
67519
|
var _a;
|
|
67527
|
-
const type = getTypeOfSymbol(symbol);
|
|
67520
|
+
const type = getTypeOfSymbol(symbol, checkMode);
|
|
67528
67521
|
const declaration = symbol.valueDeclaration;
|
|
67529
67522
|
if (declaration) {
|
|
67530
67523
|
if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {
|
|
@@ -67651,7 +67644,7 @@ function createTypeChecker(host) {
|
|
|
67651
67644
|
}
|
|
67652
67645
|
}
|
|
67653
67646
|
checkNestedBlockScopedBinding(node, symbol);
|
|
67654
|
-
let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node);
|
|
67647
|
+
let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node, checkMode);
|
|
67655
67648
|
const assignmentKind = getAssignmentTargetKind(node);
|
|
67656
67649
|
if (assignmentKind) {
|
|
67657
67650
|
if (!(localOrExportSymbol.flags & 3 /* Variable */) && !(isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) {
|
package/lib/tsserver.js
CHANGED
|
@@ -12695,20 +12695,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
12695
12695
|
}
|
|
12696
12696
|
const ch = codePointAt(text, pos);
|
|
12697
12697
|
if (pos === 0) {
|
|
12698
|
-
|
|
12699
|
-
if (ch === 71 /* G */) {
|
|
12700
|
-
const end2 = Math.min(text.length, pos + 188);
|
|
12701
|
-
let i = pos + charSize(ch);
|
|
12702
|
-
while (i < end2) {
|
|
12703
|
-
const ch2 = codePointAt(text, i);
|
|
12704
|
-
if (codePointAt(text, i) === 65533 /* replacementCharacter */) {
|
|
12705
|
-
isBinary = true;
|
|
12706
|
-
break;
|
|
12707
|
-
}
|
|
12708
|
-
i += charSize(ch2);
|
|
12709
|
-
}
|
|
12710
|
-
}
|
|
12711
|
-
if (isBinary) {
|
|
12698
|
+
if (ch === 65533 /* replacementCharacter */) {
|
|
12712
12699
|
error2(Diagnostics.File_appears_to_be_binary);
|
|
12713
12700
|
pos = end;
|
|
12714
12701
|
return token = 8 /* NonTextFileMarkerTrivia */;
|
|
@@ -57434,7 +57421,7 @@ function createTypeChecker(host) {
|
|
|
57434
57421
|
/*reportErrors*/
|
|
57435
57422
|
false
|
|
57436
57423
|
) : unknownType;
|
|
57437
|
-
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
|
|
57424
|
+
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, reportErrors2 ? 0 /* Normal */ : 1 /* Contextual */, contextualType)));
|
|
57438
57425
|
}
|
|
57439
57426
|
if (isBindingPattern(element.name)) {
|
|
57440
57427
|
return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2);
|
|
@@ -57568,18 +57555,18 @@ function createTypeChecker(host) {
|
|
|
57568
57555
|
}
|
|
57569
57556
|
return false;
|
|
57570
57557
|
}
|
|
57571
|
-
function getTypeOfVariableOrParameterOrProperty(symbol) {
|
|
57558
|
+
function getTypeOfVariableOrParameterOrProperty(symbol, checkMode) {
|
|
57572
57559
|
const links = getSymbolLinks(symbol);
|
|
57573
57560
|
if (!links.type) {
|
|
57574
|
-
const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol);
|
|
57575
|
-
if (!links.type && !isParameterOfContextSensitiveSignature(symbol)) {
|
|
57561
|
+
const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode);
|
|
57562
|
+
if (!links.type && !isParameterOfContextSensitiveSignature(symbol) && !checkMode) {
|
|
57576
57563
|
links.type = type;
|
|
57577
57564
|
}
|
|
57578
57565
|
return type;
|
|
57579
57566
|
}
|
|
57580
57567
|
return links.type;
|
|
57581
57568
|
}
|
|
57582
|
-
function getTypeOfVariableOrParameterOrPropertyWorker(symbol) {
|
|
57569
|
+
function getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode) {
|
|
57583
57570
|
if (symbol.flags & 4194304 /* Prototype */) {
|
|
57584
57571
|
return getTypeOfPrototypeProperty(symbol);
|
|
57585
57572
|
}
|
|
@@ -57617,6 +57604,9 @@ function createTypeChecker(host) {
|
|
|
57617
57604
|
if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {
|
|
57618
57605
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
57619
57606
|
}
|
|
57607
|
+
if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) {
|
|
57608
|
+
return errorType;
|
|
57609
|
+
}
|
|
57620
57610
|
return reportCircularityError(symbol);
|
|
57621
57611
|
}
|
|
57622
57612
|
let type;
|
|
@@ -57654,6 +57644,9 @@ function createTypeChecker(host) {
|
|
|
57654
57644
|
if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {
|
|
57655
57645
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
57656
57646
|
}
|
|
57647
|
+
if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) {
|
|
57648
|
+
return type;
|
|
57649
|
+
}
|
|
57657
57650
|
return reportCircularityError(symbol);
|
|
57658
57651
|
}
|
|
57659
57652
|
return type;
|
|
@@ -57882,7 +57875,7 @@ function createTypeChecker(host) {
|
|
|
57882
57875
|
}
|
|
57883
57876
|
return getTypeOfSymbol(symbol);
|
|
57884
57877
|
}
|
|
57885
|
-
function getTypeOfSymbol(symbol) {
|
|
57878
|
+
function getTypeOfSymbol(symbol, checkMode) {
|
|
57886
57879
|
const checkFlags = getCheckFlags(symbol);
|
|
57887
57880
|
if (checkFlags & 65536 /* DeferredType */) {
|
|
57888
57881
|
return getTypeOfSymbolWithDeferredType(symbol);
|
|
@@ -57897,7 +57890,7 @@ function createTypeChecker(host) {
|
|
|
57897
57890
|
return getTypeOfReverseMappedSymbol(symbol);
|
|
57898
57891
|
}
|
|
57899
57892
|
if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) {
|
|
57900
|
-
return getTypeOfVariableOrParameterOrProperty(symbol);
|
|
57893
|
+
return getTypeOfVariableOrParameterOrProperty(symbol, checkMode);
|
|
57901
57894
|
}
|
|
57902
57895
|
if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) {
|
|
57903
57896
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
@@ -72260,9 +72253,9 @@ function createTypeChecker(host) {
|
|
|
72260
72253
|
}
|
|
72261
72254
|
}
|
|
72262
72255
|
}
|
|
72263
|
-
function getNarrowedTypeOfSymbol(symbol, location) {
|
|
72256
|
+
function getNarrowedTypeOfSymbol(symbol, location, checkMode) {
|
|
72264
72257
|
var _a;
|
|
72265
|
-
const type = getTypeOfSymbol(symbol);
|
|
72258
|
+
const type = getTypeOfSymbol(symbol, checkMode);
|
|
72266
72259
|
const declaration = symbol.valueDeclaration;
|
|
72267
72260
|
if (declaration) {
|
|
72268
72261
|
if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {
|
|
@@ -72389,7 +72382,7 @@ function createTypeChecker(host) {
|
|
|
72389
72382
|
}
|
|
72390
72383
|
}
|
|
72391
72384
|
checkNestedBlockScopedBinding(node, symbol);
|
|
72392
|
-
let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node);
|
|
72385
|
+
let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node, checkMode);
|
|
72393
72386
|
const assignmentKind = getAssignmentTargetKind(node);
|
|
72394
72387
|
if (assignmentKind) {
|
|
72395
72388
|
if (!(localOrExportSymbol.flags & 3 /* Variable */) && !(isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) {
|
package/lib/typescript.js
CHANGED
|
@@ -10305,20 +10305,7 @@ ${lanes.join("\n")}
|
|
|
10305
10305
|
}
|
|
10306
10306
|
const ch = codePointAt(text, pos);
|
|
10307
10307
|
if (pos === 0) {
|
|
10308
|
-
|
|
10309
|
-
if (ch === 71 /* G */) {
|
|
10310
|
-
const end2 = Math.min(text.length, pos + 188);
|
|
10311
|
-
let i = pos + charSize(ch);
|
|
10312
|
-
while (i < end2) {
|
|
10313
|
-
const ch2 = codePointAt(text, i);
|
|
10314
|
-
if (codePointAt(text, i) === 65533 /* replacementCharacter */) {
|
|
10315
|
-
isBinary = true;
|
|
10316
|
-
break;
|
|
10317
|
-
}
|
|
10318
|
-
i += charSize(ch2);
|
|
10319
|
-
}
|
|
10320
|
-
}
|
|
10321
|
-
if (isBinary) {
|
|
10308
|
+
if (ch === 65533 /* replacementCharacter */) {
|
|
10322
10309
|
error2(Diagnostics.File_appears_to_be_binary);
|
|
10323
10310
|
pos = end;
|
|
10324
10311
|
return token = 8 /* NonTextFileMarkerTrivia */;
|
|
@@ -55189,7 +55176,7 @@ ${lanes.join("\n")}
|
|
|
55189
55176
|
/*reportErrors*/
|
|
55190
55177
|
false
|
|
55191
55178
|
) : unknownType;
|
|
55192
|
-
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, 0 /* Normal */, contextualType)));
|
|
55179
|
+
return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, reportErrors2 ? 0 /* Normal */ : 1 /* Contextual */, contextualType)));
|
|
55193
55180
|
}
|
|
55194
55181
|
if (isBindingPattern(element.name)) {
|
|
55195
55182
|
return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors2);
|
|
@@ -55323,18 +55310,18 @@ ${lanes.join("\n")}
|
|
|
55323
55310
|
}
|
|
55324
55311
|
return false;
|
|
55325
55312
|
}
|
|
55326
|
-
function getTypeOfVariableOrParameterOrProperty(symbol) {
|
|
55313
|
+
function getTypeOfVariableOrParameterOrProperty(symbol, checkMode) {
|
|
55327
55314
|
const links = getSymbolLinks(symbol);
|
|
55328
55315
|
if (!links.type) {
|
|
55329
|
-
const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol);
|
|
55330
|
-
if (!links.type && !isParameterOfContextSensitiveSignature(symbol)) {
|
|
55316
|
+
const type = getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode);
|
|
55317
|
+
if (!links.type && !isParameterOfContextSensitiveSignature(symbol) && !checkMode) {
|
|
55331
55318
|
links.type = type;
|
|
55332
55319
|
}
|
|
55333
55320
|
return type;
|
|
55334
55321
|
}
|
|
55335
55322
|
return links.type;
|
|
55336
55323
|
}
|
|
55337
|
-
function getTypeOfVariableOrParameterOrPropertyWorker(symbol) {
|
|
55324
|
+
function getTypeOfVariableOrParameterOrPropertyWorker(symbol, checkMode) {
|
|
55338
55325
|
if (symbol.flags & 4194304 /* Prototype */) {
|
|
55339
55326
|
return getTypeOfPrototypeProperty(symbol);
|
|
55340
55327
|
}
|
|
@@ -55372,6 +55359,9 @@ ${lanes.join("\n")}
|
|
|
55372
55359
|
if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {
|
|
55373
55360
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
55374
55361
|
}
|
|
55362
|
+
if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) {
|
|
55363
|
+
return errorType;
|
|
55364
|
+
}
|
|
55375
55365
|
return reportCircularityError(symbol);
|
|
55376
55366
|
}
|
|
55377
55367
|
let type;
|
|
@@ -55409,6 +55399,9 @@ ${lanes.join("\n")}
|
|
|
55409
55399
|
if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {
|
|
55410
55400
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
55411
55401
|
}
|
|
55402
|
+
if (isBindingElement(declaration) && checkMode === 1 /* Contextual */) {
|
|
55403
|
+
return type;
|
|
55404
|
+
}
|
|
55412
55405
|
return reportCircularityError(symbol);
|
|
55413
55406
|
}
|
|
55414
55407
|
return type;
|
|
@@ -55637,7 +55630,7 @@ ${lanes.join("\n")}
|
|
|
55637
55630
|
}
|
|
55638
55631
|
return getTypeOfSymbol(symbol);
|
|
55639
55632
|
}
|
|
55640
|
-
function getTypeOfSymbol(symbol) {
|
|
55633
|
+
function getTypeOfSymbol(symbol, checkMode) {
|
|
55641
55634
|
const checkFlags = getCheckFlags(symbol);
|
|
55642
55635
|
if (checkFlags & 65536 /* DeferredType */) {
|
|
55643
55636
|
return getTypeOfSymbolWithDeferredType(symbol);
|
|
@@ -55652,7 +55645,7 @@ ${lanes.join("\n")}
|
|
|
55652
55645
|
return getTypeOfReverseMappedSymbol(symbol);
|
|
55653
55646
|
}
|
|
55654
55647
|
if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) {
|
|
55655
|
-
return getTypeOfVariableOrParameterOrProperty(symbol);
|
|
55648
|
+
return getTypeOfVariableOrParameterOrProperty(symbol, checkMode);
|
|
55656
55649
|
}
|
|
55657
55650
|
if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) {
|
|
55658
55651
|
return getTypeOfFuncClassEnumModule(symbol);
|
|
@@ -70015,9 +70008,9 @@ ${lanes.join("\n")}
|
|
|
70015
70008
|
}
|
|
70016
70009
|
}
|
|
70017
70010
|
}
|
|
70018
|
-
function getNarrowedTypeOfSymbol(symbol, location) {
|
|
70011
|
+
function getNarrowedTypeOfSymbol(symbol, location, checkMode) {
|
|
70019
70012
|
var _a;
|
|
70020
|
-
const type = getTypeOfSymbol(symbol);
|
|
70013
|
+
const type = getTypeOfSymbol(symbol, checkMode);
|
|
70021
70014
|
const declaration = symbol.valueDeclaration;
|
|
70022
70015
|
if (declaration) {
|
|
70023
70016
|
if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {
|
|
@@ -70144,7 +70137,7 @@ ${lanes.join("\n")}
|
|
|
70144
70137
|
}
|
|
70145
70138
|
}
|
|
70146
70139
|
checkNestedBlockScopedBinding(node, symbol);
|
|
70147
|
-
let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node);
|
|
70140
|
+
let type = getNarrowedTypeOfSymbol(localOrExportSymbol, node, checkMode);
|
|
70148
70141
|
const assignmentKind = getAssignmentTargetKind(node);
|
|
70149
70142
|
if (assignmentKind) {
|
|
70150
70143
|
if (!(localOrExportSymbol.flags & 3 /* Variable */) && !(isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) {
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -8427,20 +8427,7 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
8427
8427
|
}
|
|
8428
8428
|
const ch = codePointAt(text, pos);
|
|
8429
8429
|
if (pos === 0) {
|
|
8430
|
-
|
|
8431
|
-
if (ch === 71 /* G */) {
|
|
8432
|
-
const end2 = Math.min(text.length, pos + 188);
|
|
8433
|
-
let i = pos + charSize(ch);
|
|
8434
|
-
while (i < end2) {
|
|
8435
|
-
const ch2 = codePointAt(text, i);
|
|
8436
|
-
if (codePointAt(text, i) === 65533 /* replacementCharacter */) {
|
|
8437
|
-
isBinary = true;
|
|
8438
|
-
break;
|
|
8439
|
-
}
|
|
8440
|
-
i += charSize(ch2);
|
|
8441
|
-
}
|
|
8442
|
-
}
|
|
8443
|
-
if (isBinary) {
|
|
8430
|
+
if (ch === 65533 /* replacementCharacter */) {
|
|
8444
8431
|
error(Diagnostics.File_appears_to_be_binary);
|
|
8445
8432
|
pos = end;
|
|
8446
8433
|
return token = 8 /* NonTextFileMarkerTrivia */;
|
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
|
}
|