@typescript-deploys/pr-build 5.2.0-pr-54935-7 → 5.2.0-pr-54891-7
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 +20 -49
- package/lib/tsserver.js +32 -55
- package/lib/tsserverlibrary.d.ts +1 -1
- package/lib/tsserverlibrary.js +32 -55
- package/lib/typescript.d.ts +1 -1
- package/lib/typescript.js +32 -55
- package/lib/typingsInstaller.js +6 -1
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.2";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20230710`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -6118,6 +6118,7 @@ var Diagnostics = {
|
|
|
6118
6118
|
The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration: diag(1493, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493", "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),
|
|
6119
6119
|
The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration: diag(1494, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494", "The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),
|
|
6120
6120
|
_0_modifier_cannot_appear_on_an_await_using_declaration: diag(1495, 1 /* Error */, "_0_modifier_cannot_appear_on_an_await_using_declaration_1495", "'{0}' modifier cannot appear on an 'await using' declaration."),
|
|
6121
|
+
Unexpected_token_Did_you_mean_0: diag(1496, 1 /* Error */, "Unexpected_token_Did_you_mean_0_1496", "Unexpected token. Did you mean '{0}'?"),
|
|
6121
6122
|
The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
|
|
6122
6123
|
The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
|
|
6123
6124
|
Call_signature_return_types_0_and_1_are_incompatible: diag(
|
|
@@ -9155,6 +9156,10 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
9155
9156
|
case 33 /* exclamation */:
|
|
9156
9157
|
if (text.charCodeAt(pos + 1) === 61 /* equals */) {
|
|
9157
9158
|
if (text.charCodeAt(pos + 2) === 61 /* equals */) {
|
|
9159
|
+
if (text.charCodeAt(pos + 3) === 61 /* equals */) {
|
|
9160
|
+
error(Diagnostics.Unexpected_token_Did_you_mean_0, pos, 4, "!==");
|
|
9161
|
+
return pos += 4, token = 38 /* ExclamationEqualsEqualsToken */;
|
|
9162
|
+
}
|
|
9158
9163
|
return pos += 3, token = 38 /* ExclamationEqualsEqualsToken */;
|
|
9159
9164
|
}
|
|
9160
9165
|
return pos += 2, token = 36 /* ExclamationEqualsToken */;
|
|
@@ -48184,7 +48189,7 @@ function createTypeChecker(host) {
|
|
|
48184
48189
|
return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
|
|
48185
48190
|
}
|
|
48186
48191
|
function addPropertyToElementList(propertySymbol, context, typeElements) {
|
|
48187
|
-
var _a
|
|
48192
|
+
var _a;
|
|
48188
48193
|
const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
|
|
48189
48194
|
const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
|
|
48190
48195
|
const saveEnclosingDeclaration = context.enclosingDeclaration;
|
|
@@ -48234,54 +48239,17 @@ function createTypeChecker(host) {
|
|
|
48234
48239
|
context.reverseMappedStack.pop();
|
|
48235
48240
|
}
|
|
48236
48241
|
}
|
|
48237
|
-
|
|
48238
|
-
|
|
48239
|
-
|
|
48240
|
-
if (propertySymbol.flags & 32768 /* GetAccessor */) {
|
|
48241
|
-
const getAccessorSignature = factory.createGetAccessorDeclaration(
|
|
48242
|
-
factory.createModifiersFromModifierFlags(flags),
|
|
48243
|
-
propertyName,
|
|
48244
|
-
[],
|
|
48245
|
-
propertyTypeNode,
|
|
48246
|
-
/*body*/
|
|
48247
|
-
void 0
|
|
48248
|
-
);
|
|
48249
|
-
typeElements.push(preserveCommentsOn(getAccessorSignature));
|
|
48250
|
-
}
|
|
48251
|
-
if (propertySymbol.flags & 65536 /* SetAccessor */) {
|
|
48252
|
-
const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
|
|
48253
|
-
const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
|
|
48254
|
-
const setAccessorSignature = factory.createSetAccessorDeclaration(
|
|
48255
|
-
factory.createModifiersFromModifierFlags(flags),
|
|
48256
|
-
propertyName,
|
|
48257
|
-
[factory.createParameterDeclaration(
|
|
48258
|
-
/*modifiers*/
|
|
48259
|
-
void 0,
|
|
48260
|
-
/*dotDotDotToken*/
|
|
48261
|
-
void 0,
|
|
48262
|
-
parameterName,
|
|
48263
|
-
/*questionToken*/
|
|
48264
|
-
void 0,
|
|
48265
|
-
propertyTypeNode
|
|
48266
|
-
)],
|
|
48267
|
-
/*body*/
|
|
48268
|
-
void 0
|
|
48269
|
-
);
|
|
48270
|
-
typeElements.push(preserveCommentsOn(setAccessorSignature));
|
|
48271
|
-
}
|
|
48272
|
-
} else {
|
|
48273
|
-
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
48274
|
-
if (modifiers) {
|
|
48275
|
-
context.approximateLength += 9;
|
|
48276
|
-
}
|
|
48277
|
-
const propertySignature = factory.createPropertySignature(
|
|
48278
|
-
modifiers,
|
|
48279
|
-
propertyName,
|
|
48280
|
-
optionalToken,
|
|
48281
|
-
propertyTypeNode
|
|
48282
|
-
);
|
|
48283
|
-
typeElements.push(preserveCommentsOn(propertySignature));
|
|
48242
|
+
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
48243
|
+
if (modifiers) {
|
|
48244
|
+
context.approximateLength += 9;
|
|
48284
48245
|
}
|
|
48246
|
+
const propertySignature = factory.createPropertySignature(
|
|
48247
|
+
modifiers,
|
|
48248
|
+
propertyName,
|
|
48249
|
+
optionalToken,
|
|
48250
|
+
propertyTypeNode
|
|
48251
|
+
);
|
|
48252
|
+
typeElements.push(preserveCommentsOn(propertySignature));
|
|
48285
48253
|
function preserveCommentsOn(node) {
|
|
48286
48254
|
var _a2;
|
|
48287
48255
|
if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
|
|
@@ -118457,6 +118425,9 @@ function parseConfigHostFromCompilerHostLike(host, directoryStructureHost = host
|
|
|
118457
118425
|
return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth);
|
|
118458
118426
|
},
|
|
118459
118427
|
readFile: (f) => directoryStructureHost.readFile(f),
|
|
118428
|
+
directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists),
|
|
118429
|
+
getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories),
|
|
118430
|
+
realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath),
|
|
118460
118431
|
useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),
|
|
118461
118432
|
getCurrentDirectory: () => host.getCurrentDirectory(),
|
|
118462
118433
|
onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined,
|
package/lib/tsserver.js
CHANGED
|
@@ -2327,7 +2327,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2327
2327
|
|
|
2328
2328
|
// src/compiler/corePublic.ts
|
|
2329
2329
|
var versionMajorMinor = "5.2";
|
|
2330
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2330
|
+
var version = `${versionMajorMinor}.0-insiders.20230710`;
|
|
2331
2331
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2332
2332
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2333
2333
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -9639,6 +9639,7 @@ var Diagnostics = {
|
|
|
9639
9639
|
The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration: diag(1493, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493", "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),
|
|
9640
9640
|
The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration: diag(1494, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494", "The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),
|
|
9641
9641
|
_0_modifier_cannot_appear_on_an_await_using_declaration: diag(1495, 1 /* Error */, "_0_modifier_cannot_appear_on_an_await_using_declaration_1495", "'{0}' modifier cannot appear on an 'await using' declaration."),
|
|
9642
|
+
Unexpected_token_Did_you_mean_0: diag(1496, 1 /* Error */, "Unexpected_token_Did_you_mean_0_1496", "Unexpected token. Did you mean '{0}'?"),
|
|
9642
9643
|
The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
|
|
9643
9644
|
The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
|
|
9644
9645
|
Call_signature_return_types_0_and_1_are_incompatible: diag(
|
|
@@ -12697,6 +12698,10 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
12697
12698
|
case 33 /* exclamation */:
|
|
12698
12699
|
if (text.charCodeAt(pos + 1) === 61 /* equals */) {
|
|
12699
12700
|
if (text.charCodeAt(pos + 2) === 61 /* equals */) {
|
|
12701
|
+
if (text.charCodeAt(pos + 3) === 61 /* equals */) {
|
|
12702
|
+
error2(Diagnostics.Unexpected_token_Did_you_mean_0, pos, 4, "!==");
|
|
12703
|
+
return pos += 4, token = 38 /* ExclamationEqualsEqualsToken */;
|
|
12704
|
+
}
|
|
12700
12705
|
return pos += 3, token = 38 /* ExclamationEqualsEqualsToken */;
|
|
12701
12706
|
}
|
|
12702
12707
|
return pos += 2, token = 36 /* ExclamationEqualsToken */;
|
|
@@ -52891,7 +52896,7 @@ function createTypeChecker(host) {
|
|
|
52891
52896
|
return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
|
|
52892
52897
|
}
|
|
52893
52898
|
function addPropertyToElementList(propertySymbol, context, typeElements) {
|
|
52894
|
-
var _a
|
|
52899
|
+
var _a;
|
|
52895
52900
|
const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
|
|
52896
52901
|
const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
|
|
52897
52902
|
const saveEnclosingDeclaration = context.enclosingDeclaration;
|
|
@@ -52941,54 +52946,17 @@ function createTypeChecker(host) {
|
|
|
52941
52946
|
context.reverseMappedStack.pop();
|
|
52942
52947
|
}
|
|
52943
52948
|
}
|
|
52944
|
-
|
|
52945
|
-
|
|
52946
|
-
|
|
52947
|
-
if (propertySymbol.flags & 32768 /* GetAccessor */) {
|
|
52948
|
-
const getAccessorSignature = factory.createGetAccessorDeclaration(
|
|
52949
|
-
factory.createModifiersFromModifierFlags(flags),
|
|
52950
|
-
propertyName,
|
|
52951
|
-
[],
|
|
52952
|
-
propertyTypeNode,
|
|
52953
|
-
/*body*/
|
|
52954
|
-
void 0
|
|
52955
|
-
);
|
|
52956
|
-
typeElements.push(preserveCommentsOn(getAccessorSignature));
|
|
52957
|
-
}
|
|
52958
|
-
if (propertySymbol.flags & 65536 /* SetAccessor */) {
|
|
52959
|
-
const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
|
|
52960
|
-
const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
|
|
52961
|
-
const setAccessorSignature = factory.createSetAccessorDeclaration(
|
|
52962
|
-
factory.createModifiersFromModifierFlags(flags),
|
|
52963
|
-
propertyName,
|
|
52964
|
-
[factory.createParameterDeclaration(
|
|
52965
|
-
/*modifiers*/
|
|
52966
|
-
void 0,
|
|
52967
|
-
/*dotDotDotToken*/
|
|
52968
|
-
void 0,
|
|
52969
|
-
parameterName,
|
|
52970
|
-
/*questionToken*/
|
|
52971
|
-
void 0,
|
|
52972
|
-
propertyTypeNode
|
|
52973
|
-
)],
|
|
52974
|
-
/*body*/
|
|
52975
|
-
void 0
|
|
52976
|
-
);
|
|
52977
|
-
typeElements.push(preserveCommentsOn(setAccessorSignature));
|
|
52978
|
-
}
|
|
52979
|
-
} else {
|
|
52980
|
-
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
52981
|
-
if (modifiers) {
|
|
52982
|
-
context.approximateLength += 9;
|
|
52983
|
-
}
|
|
52984
|
-
const propertySignature = factory.createPropertySignature(
|
|
52985
|
-
modifiers,
|
|
52986
|
-
propertyName,
|
|
52987
|
-
optionalToken,
|
|
52988
|
-
propertyTypeNode
|
|
52989
|
-
);
|
|
52990
|
-
typeElements.push(preserveCommentsOn(propertySignature));
|
|
52949
|
+
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
52950
|
+
if (modifiers) {
|
|
52951
|
+
context.approximateLength += 9;
|
|
52991
52952
|
}
|
|
52953
|
+
const propertySignature = factory.createPropertySignature(
|
|
52954
|
+
modifiers,
|
|
52955
|
+
propertyName,
|
|
52956
|
+
optionalToken,
|
|
52957
|
+
propertyTypeNode
|
|
52958
|
+
);
|
|
52959
|
+
typeElements.push(preserveCommentsOn(propertySignature));
|
|
52992
52960
|
function preserveCommentsOn(node) {
|
|
52993
52961
|
var _a2;
|
|
52994
52962
|
if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
|
|
@@ -123400,6 +123368,9 @@ function parseConfigHostFromCompilerHostLike(host, directoryStructureHost = host
|
|
|
123400
123368
|
return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth);
|
|
123401
123369
|
},
|
|
123402
123370
|
readFile: (f) => directoryStructureHost.readFile(f),
|
|
123371
|
+
directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists),
|
|
123372
|
+
getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories),
|
|
123373
|
+
realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath),
|
|
123403
123374
|
useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),
|
|
123404
123375
|
getCurrentDirectory: () => host.getCurrentDirectory(),
|
|
123405
123376
|
onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined,
|
|
@@ -132904,13 +132875,16 @@ function needsNameFromDeclaration(symbol) {
|
|
|
132904
132875
|
return !(symbol.flags & 33554432 /* Transient */) && (symbol.escapedName === "export=" /* ExportEquals */ || symbol.escapedName === "default" /* Default */);
|
|
132905
132876
|
}
|
|
132906
132877
|
function getDefaultLikeExportNameFromDeclaration(symbol) {
|
|
132907
|
-
return firstDefined(
|
|
132908
|
-
|
|
132909
|
-
(d)
|
|
132910
|
-
|
|
132911
|
-
return isExportAssignment(d) ? (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text : (_b = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _b.text;
|
|
132878
|
+
return firstDefined(symbol.declarations, (d) => {
|
|
132879
|
+
var _a, _b, _c;
|
|
132880
|
+
if (isExportAssignment(d)) {
|
|
132881
|
+
return (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text;
|
|
132912
132882
|
}
|
|
132913
|
-
|
|
132883
|
+
if (isExportSpecifier(d) && d.symbol.flags === 2097152 /* Alias */) {
|
|
132884
|
+
return (_b = tryCast(d.propertyName, isIdentifier)) == null ? void 0 : _b.text;
|
|
132885
|
+
}
|
|
132886
|
+
return (_c = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _c.text;
|
|
132887
|
+
});
|
|
132914
132888
|
}
|
|
132915
132889
|
function getSymbolParentOrFail(symbol) {
|
|
132916
132890
|
var _a;
|
|
@@ -143779,6 +143753,9 @@ function createLanguageService(host, documentRegistry = createDocumentRegistry(h
|
|
|
143779
143753
|
useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
|
|
143780
143754
|
fileExists: (fileName) => compilerHost.fileExists(fileName),
|
|
143781
143755
|
readFile: (fileName) => compilerHost.readFile(fileName),
|
|
143756
|
+
directoryExists: (f) => compilerHost.directoryExists(f),
|
|
143757
|
+
getDirectories: (f) => compilerHost.getDirectories(f),
|
|
143758
|
+
realpath: compilerHost.realpath,
|
|
143782
143759
|
readDirectory: (...args) => compilerHost.readDirectory(...args),
|
|
143783
143760
|
trace: compilerHost.trace,
|
|
143784
143761
|
getCurrentDirectory: compilerHost.getCurrentDirectory,
|
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -6274,7 +6274,7 @@ declare namespace ts {
|
|
|
6274
6274
|
getSourceFileByPath(path: Path): SourceFile | undefined;
|
|
6275
6275
|
getCurrentDirectory(): string;
|
|
6276
6276
|
}
|
|
6277
|
-
interface ParseConfigHost {
|
|
6277
|
+
interface ParseConfigHost extends ModuleResolutionHost {
|
|
6278
6278
|
useCaseSensitiveFileNames: boolean;
|
|
6279
6279
|
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): readonly string[];
|
|
6280
6280
|
/**
|
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.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230710`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -7422,6 +7422,7 @@ ${lanes.join("\n")}
|
|
|
7422
7422
|
The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration: diag(1493, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493", "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),
|
|
7423
7423
|
The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration: diag(1494, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494", "The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),
|
|
7424
7424
|
_0_modifier_cannot_appear_on_an_await_using_declaration: diag(1495, 1 /* Error */, "_0_modifier_cannot_appear_on_an_await_using_declaration_1495", "'{0}' modifier cannot appear on an 'await using' declaration."),
|
|
7425
|
+
Unexpected_token_Did_you_mean_0: diag(1496, 1 /* Error */, "Unexpected_token_Did_you_mean_0_1496", "Unexpected token. Did you mean '{0}'?"),
|
|
7425
7426
|
The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
|
|
7426
7427
|
The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
|
|
7427
7428
|
Call_signature_return_types_0_and_1_are_incompatible: diag(
|
|
@@ -10321,6 +10322,10 @@ ${lanes.join("\n")}
|
|
|
10321
10322
|
case 33 /* exclamation */:
|
|
10322
10323
|
if (text.charCodeAt(pos + 1) === 61 /* equals */) {
|
|
10323
10324
|
if (text.charCodeAt(pos + 2) === 61 /* equals */) {
|
|
10325
|
+
if (text.charCodeAt(pos + 3) === 61 /* equals */) {
|
|
10326
|
+
error2(Diagnostics.Unexpected_token_Did_you_mean_0, pos, 4, "!==");
|
|
10327
|
+
return pos += 4, token = 38 /* ExclamationEqualsEqualsToken */;
|
|
10328
|
+
}
|
|
10324
10329
|
return pos += 3, token = 38 /* ExclamationEqualsEqualsToken */;
|
|
10325
10330
|
}
|
|
10326
10331
|
return pos += 2, token = 36 /* ExclamationEqualsToken */;
|
|
@@ -50658,7 +50663,7 @@ ${lanes.join("\n")}
|
|
|
50658
50663
|
return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
|
|
50659
50664
|
}
|
|
50660
50665
|
function addPropertyToElementList(propertySymbol, context, typeElements) {
|
|
50661
|
-
var _a
|
|
50666
|
+
var _a;
|
|
50662
50667
|
const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
|
|
50663
50668
|
const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
|
|
50664
50669
|
const saveEnclosingDeclaration = context.enclosingDeclaration;
|
|
@@ -50708,54 +50713,17 @@ ${lanes.join("\n")}
|
|
|
50708
50713
|
context.reverseMappedStack.pop();
|
|
50709
50714
|
}
|
|
50710
50715
|
}
|
|
50711
|
-
|
|
50712
|
-
|
|
50713
|
-
|
|
50714
|
-
if (propertySymbol.flags & 32768 /* GetAccessor */) {
|
|
50715
|
-
const getAccessorSignature = factory.createGetAccessorDeclaration(
|
|
50716
|
-
factory.createModifiersFromModifierFlags(flags),
|
|
50717
|
-
propertyName,
|
|
50718
|
-
[],
|
|
50719
|
-
propertyTypeNode,
|
|
50720
|
-
/*body*/
|
|
50721
|
-
void 0
|
|
50722
|
-
);
|
|
50723
|
-
typeElements.push(preserveCommentsOn(getAccessorSignature));
|
|
50724
|
-
}
|
|
50725
|
-
if (propertySymbol.flags & 65536 /* SetAccessor */) {
|
|
50726
|
-
const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
|
|
50727
|
-
const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
|
|
50728
|
-
const setAccessorSignature = factory.createSetAccessorDeclaration(
|
|
50729
|
-
factory.createModifiersFromModifierFlags(flags),
|
|
50730
|
-
propertyName,
|
|
50731
|
-
[factory.createParameterDeclaration(
|
|
50732
|
-
/*modifiers*/
|
|
50733
|
-
void 0,
|
|
50734
|
-
/*dotDotDotToken*/
|
|
50735
|
-
void 0,
|
|
50736
|
-
parameterName,
|
|
50737
|
-
/*questionToken*/
|
|
50738
|
-
void 0,
|
|
50739
|
-
propertyTypeNode
|
|
50740
|
-
)],
|
|
50741
|
-
/*body*/
|
|
50742
|
-
void 0
|
|
50743
|
-
);
|
|
50744
|
-
typeElements.push(preserveCommentsOn(setAccessorSignature));
|
|
50745
|
-
}
|
|
50746
|
-
} else {
|
|
50747
|
-
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
50748
|
-
if (modifiers) {
|
|
50749
|
-
context.approximateLength += 9;
|
|
50750
|
-
}
|
|
50751
|
-
const propertySignature = factory.createPropertySignature(
|
|
50752
|
-
modifiers,
|
|
50753
|
-
propertyName,
|
|
50754
|
-
optionalToken,
|
|
50755
|
-
propertyTypeNode
|
|
50756
|
-
);
|
|
50757
|
-
typeElements.push(preserveCommentsOn(propertySignature));
|
|
50716
|
+
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
50717
|
+
if (modifiers) {
|
|
50718
|
+
context.approximateLength += 9;
|
|
50758
50719
|
}
|
|
50720
|
+
const propertySignature = factory.createPropertySignature(
|
|
50721
|
+
modifiers,
|
|
50722
|
+
propertyName,
|
|
50723
|
+
optionalToken,
|
|
50724
|
+
propertyTypeNode
|
|
50725
|
+
);
|
|
50726
|
+
typeElements.push(preserveCommentsOn(propertySignature));
|
|
50759
50727
|
function preserveCommentsOn(node) {
|
|
50760
50728
|
var _a2;
|
|
50761
50729
|
if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
|
|
@@ -121385,6 +121353,9 @@ ${lanes.join("\n")}
|
|
|
121385
121353
|
return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth);
|
|
121386
121354
|
},
|
|
121387
121355
|
readFile: (f) => directoryStructureHost.readFile(f),
|
|
121356
|
+
directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists),
|
|
121357
|
+
getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories),
|
|
121358
|
+
realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath),
|
|
121388
121359
|
useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),
|
|
121389
121360
|
getCurrentDirectory: () => host.getCurrentDirectory(),
|
|
121390
121361
|
onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined,
|
|
@@ -131162,13 +131133,16 @@ ${lanes.join("\n")}
|
|
|
131162
131133
|
return !(symbol.flags & 33554432 /* Transient */) && (symbol.escapedName === "export=" /* ExportEquals */ || symbol.escapedName === "default" /* Default */);
|
|
131163
131134
|
}
|
|
131164
131135
|
function getDefaultLikeExportNameFromDeclaration(symbol) {
|
|
131165
|
-
return firstDefined(
|
|
131166
|
-
|
|
131167
|
-
(d)
|
|
131168
|
-
|
|
131169
|
-
return isExportAssignment(d) ? (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text : (_b = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _b.text;
|
|
131136
|
+
return firstDefined(symbol.declarations, (d) => {
|
|
131137
|
+
var _a, _b, _c;
|
|
131138
|
+
if (isExportAssignment(d)) {
|
|
131139
|
+
return (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text;
|
|
131170
131140
|
}
|
|
131171
|
-
|
|
131141
|
+
if (isExportSpecifier(d) && d.symbol.flags === 2097152 /* Alias */) {
|
|
131142
|
+
return (_b = tryCast(d.propertyName, isIdentifier)) == null ? void 0 : _b.text;
|
|
131143
|
+
}
|
|
131144
|
+
return (_c = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _c.text;
|
|
131145
|
+
});
|
|
131172
131146
|
}
|
|
131173
131147
|
function getSymbolParentOrFail(symbol) {
|
|
131174
131148
|
var _a;
|
|
@@ -141724,6 +141698,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
141724
141698
|
useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
|
|
141725
141699
|
fileExists: (fileName) => compilerHost.fileExists(fileName),
|
|
141726
141700
|
readFile: (fileName) => compilerHost.readFile(fileName),
|
|
141701
|
+
directoryExists: (f) => compilerHost.directoryExists(f),
|
|
141702
|
+
getDirectories: (f) => compilerHost.getDirectories(f),
|
|
141703
|
+
realpath: compilerHost.realpath,
|
|
141727
141704
|
readDirectory: (...args) => compilerHost.readDirectory(...args),
|
|
141728
141705
|
trace: compilerHost.trace,
|
|
141729
141706
|
getCurrentDirectory: compilerHost.getCurrentDirectory,
|
package/lib/typescript.d.ts
CHANGED
|
@@ -2221,7 +2221,7 @@ declare namespace ts {
|
|
|
2221
2221
|
getSourceFileByPath(path: Path): SourceFile | undefined;
|
|
2222
2222
|
getCurrentDirectory(): string;
|
|
2223
2223
|
}
|
|
2224
|
-
interface ParseConfigHost {
|
|
2224
|
+
interface ParseConfigHost extends ModuleResolutionHost {
|
|
2225
2225
|
useCaseSensitiveFileNames: boolean;
|
|
2226
2226
|
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[], depth?: number): readonly string[];
|
|
2227
2227
|
/**
|
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.2";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230710`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -7422,6 +7422,7 @@ ${lanes.join("\n")}
|
|
|
7422
7422
|
The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration: diag(1493, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493", "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),
|
|
7423
7423
|
The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration: diag(1494, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494", "The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),
|
|
7424
7424
|
_0_modifier_cannot_appear_on_an_await_using_declaration: diag(1495, 1 /* Error */, "_0_modifier_cannot_appear_on_an_await_using_declaration_1495", "'{0}' modifier cannot appear on an 'await using' declaration."),
|
|
7425
|
+
Unexpected_token_Did_you_mean_0: diag(1496, 1 /* Error */, "Unexpected_token_Did_you_mean_0_1496", "Unexpected token. Did you mean '{0}'?"),
|
|
7425
7426
|
The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
|
|
7426
7427
|
The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
|
|
7427
7428
|
Call_signature_return_types_0_and_1_are_incompatible: diag(
|
|
@@ -10321,6 +10322,10 @@ ${lanes.join("\n")}
|
|
|
10321
10322
|
case 33 /* exclamation */:
|
|
10322
10323
|
if (text.charCodeAt(pos + 1) === 61 /* equals */) {
|
|
10323
10324
|
if (text.charCodeAt(pos + 2) === 61 /* equals */) {
|
|
10325
|
+
if (text.charCodeAt(pos + 3) === 61 /* equals */) {
|
|
10326
|
+
error2(Diagnostics.Unexpected_token_Did_you_mean_0, pos, 4, "!==");
|
|
10327
|
+
return pos += 4, token = 38 /* ExclamationEqualsEqualsToken */;
|
|
10328
|
+
}
|
|
10324
10329
|
return pos += 3, token = 38 /* ExclamationEqualsEqualsToken */;
|
|
10325
10330
|
}
|
|
10326
10331
|
return pos += 2, token = 36 /* ExclamationEqualsToken */;
|
|
@@ -50658,7 +50663,7 @@ ${lanes.join("\n")}
|
|
|
50658
50663
|
return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
|
|
50659
50664
|
}
|
|
50660
50665
|
function addPropertyToElementList(propertySymbol, context, typeElements) {
|
|
50661
|
-
var _a
|
|
50666
|
+
var _a;
|
|
50662
50667
|
const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
|
|
50663
50668
|
const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
|
|
50664
50669
|
const saveEnclosingDeclaration = context.enclosingDeclaration;
|
|
@@ -50708,54 +50713,17 @@ ${lanes.join("\n")}
|
|
|
50708
50713
|
context.reverseMappedStack.pop();
|
|
50709
50714
|
}
|
|
50710
50715
|
}
|
|
50711
|
-
|
|
50712
|
-
|
|
50713
|
-
|
|
50714
|
-
if (propertySymbol.flags & 32768 /* GetAccessor */) {
|
|
50715
|
-
const getAccessorSignature = factory.createGetAccessorDeclaration(
|
|
50716
|
-
factory.createModifiersFromModifierFlags(flags),
|
|
50717
|
-
propertyName,
|
|
50718
|
-
[],
|
|
50719
|
-
propertyTypeNode,
|
|
50720
|
-
/*body*/
|
|
50721
|
-
void 0
|
|
50722
|
-
);
|
|
50723
|
-
typeElements.push(preserveCommentsOn(getAccessorSignature));
|
|
50724
|
-
}
|
|
50725
|
-
if (propertySymbol.flags & 65536 /* SetAccessor */) {
|
|
50726
|
-
const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
|
|
50727
|
-
const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
|
|
50728
|
-
const setAccessorSignature = factory.createSetAccessorDeclaration(
|
|
50729
|
-
factory.createModifiersFromModifierFlags(flags),
|
|
50730
|
-
propertyName,
|
|
50731
|
-
[factory.createParameterDeclaration(
|
|
50732
|
-
/*modifiers*/
|
|
50733
|
-
void 0,
|
|
50734
|
-
/*dotDotDotToken*/
|
|
50735
|
-
void 0,
|
|
50736
|
-
parameterName,
|
|
50737
|
-
/*questionToken*/
|
|
50738
|
-
void 0,
|
|
50739
|
-
propertyTypeNode
|
|
50740
|
-
)],
|
|
50741
|
-
/*body*/
|
|
50742
|
-
void 0
|
|
50743
|
-
);
|
|
50744
|
-
typeElements.push(preserveCommentsOn(setAccessorSignature));
|
|
50745
|
-
}
|
|
50746
|
-
} else {
|
|
50747
|
-
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
50748
|
-
if (modifiers) {
|
|
50749
|
-
context.approximateLength += 9;
|
|
50750
|
-
}
|
|
50751
|
-
const propertySignature = factory.createPropertySignature(
|
|
50752
|
-
modifiers,
|
|
50753
|
-
propertyName,
|
|
50754
|
-
optionalToken,
|
|
50755
|
-
propertyTypeNode
|
|
50756
|
-
);
|
|
50757
|
-
typeElements.push(preserveCommentsOn(propertySignature));
|
|
50716
|
+
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
50717
|
+
if (modifiers) {
|
|
50718
|
+
context.approximateLength += 9;
|
|
50758
50719
|
}
|
|
50720
|
+
const propertySignature = factory.createPropertySignature(
|
|
50721
|
+
modifiers,
|
|
50722
|
+
propertyName,
|
|
50723
|
+
optionalToken,
|
|
50724
|
+
propertyTypeNode
|
|
50725
|
+
);
|
|
50726
|
+
typeElements.push(preserveCommentsOn(propertySignature));
|
|
50759
50727
|
function preserveCommentsOn(node) {
|
|
50760
50728
|
var _a2;
|
|
50761
50729
|
if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
|
|
@@ -121385,6 +121353,9 @@ ${lanes.join("\n")}
|
|
|
121385
121353
|
return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth);
|
|
121386
121354
|
},
|
|
121387
121355
|
readFile: (f) => directoryStructureHost.readFile(f),
|
|
121356
|
+
directoryExists: maybeBind(directoryStructureHost, directoryStructureHost.directoryExists),
|
|
121357
|
+
getDirectories: maybeBind(directoryStructureHost, directoryStructureHost.getDirectories),
|
|
121358
|
+
realpath: maybeBind(directoryStructureHost, directoryStructureHost.realpath),
|
|
121388
121359
|
useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),
|
|
121389
121360
|
getCurrentDirectory: () => host.getCurrentDirectory(),
|
|
121390
121361
|
onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || returnUndefined,
|
|
@@ -131177,13 +131148,16 @@ ${lanes.join("\n")}
|
|
|
131177
131148
|
return !(symbol.flags & 33554432 /* Transient */) && (symbol.escapedName === "export=" /* ExportEquals */ || symbol.escapedName === "default" /* Default */);
|
|
131178
131149
|
}
|
|
131179
131150
|
function getDefaultLikeExportNameFromDeclaration(symbol) {
|
|
131180
|
-
return firstDefined(
|
|
131181
|
-
|
|
131182
|
-
(d)
|
|
131183
|
-
|
|
131184
|
-
return isExportAssignment(d) ? (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text : (_b = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _b.text;
|
|
131151
|
+
return firstDefined(symbol.declarations, (d) => {
|
|
131152
|
+
var _a, _b, _c;
|
|
131153
|
+
if (isExportAssignment(d)) {
|
|
131154
|
+
return (_a = tryCast(skipOuterExpressions(d.expression), isIdentifier)) == null ? void 0 : _a.text;
|
|
131185
131155
|
}
|
|
131186
|
-
|
|
131156
|
+
if (isExportSpecifier(d) && d.symbol.flags === 2097152 /* Alias */) {
|
|
131157
|
+
return (_b = tryCast(d.propertyName, isIdentifier)) == null ? void 0 : _b.text;
|
|
131158
|
+
}
|
|
131159
|
+
return (_c = tryCast(getNameOfDeclaration(d), isIdentifier)) == null ? void 0 : _c.text;
|
|
131160
|
+
});
|
|
131187
131161
|
}
|
|
131188
131162
|
function getSymbolParentOrFail(symbol) {
|
|
131189
131163
|
var _a;
|
|
@@ -141739,6 +141713,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
141739
141713
|
useCaseSensitiveFileNames: useCaseSensitiveFileNames2,
|
|
141740
141714
|
fileExists: (fileName) => compilerHost.fileExists(fileName),
|
|
141741
141715
|
readFile: (fileName) => compilerHost.readFile(fileName),
|
|
141716
|
+
directoryExists: (f) => compilerHost.directoryExists(f),
|
|
141717
|
+
getDirectories: (f) => compilerHost.getDirectories(f),
|
|
141718
|
+
realpath: compilerHost.realpath,
|
|
141742
141719
|
readDirectory: (...args) => compilerHost.readDirectory(...args),
|
|
141743
141720
|
trace: compilerHost.trace,
|
|
141744
141721
|
getCurrentDirectory: compilerHost.getCurrentDirectory,
|
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.2";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230710`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -5492,6 +5492,7 @@ var Diagnostics = {
|
|
|
5492
5492
|
The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration: diag(1493, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493", "The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),
|
|
5493
5493
|
The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration: diag(1494, 1 /* Error */, "The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494", "The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),
|
|
5494
5494
|
_0_modifier_cannot_appear_on_an_await_using_declaration: diag(1495, 1 /* Error */, "_0_modifier_cannot_appear_on_an_await_using_declaration_1495", "'{0}' modifier cannot appear on an 'await using' declaration."),
|
|
5495
|
+
Unexpected_token_Did_you_mean_0: diag(1496, 1 /* Error */, "Unexpected_token_Did_you_mean_0_1496", "Unexpected token. Did you mean '{0}'?"),
|
|
5495
5496
|
The_types_of_0_are_incompatible_between_these_types: diag(2200, 1 /* Error */, "The_types_of_0_are_incompatible_between_these_types_2200", "The types of '{0}' are incompatible between these types."),
|
|
5496
5497
|
The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, 1 /* Error */, "The_types_returned_by_0_are_incompatible_between_these_types_2201", "The types returned by '{0}' are incompatible between these types."),
|
|
5497
5498
|
Call_signature_return_types_0_and_1_are_incompatible: diag(
|
|
@@ -8472,6 +8473,10 @@ function createScanner(languageVersion, skipTrivia2, languageVariant = 0 /* Stan
|
|
|
8472
8473
|
case 33 /* exclamation */:
|
|
8473
8474
|
if (text.charCodeAt(pos + 1) === 61 /* equals */) {
|
|
8474
8475
|
if (text.charCodeAt(pos + 2) === 61 /* equals */) {
|
|
8476
|
+
if (text.charCodeAt(pos + 3) === 61 /* equals */) {
|
|
8477
|
+
error(Diagnostics.Unexpected_token_Did_you_mean_0, pos, 4, "!==");
|
|
8478
|
+
return pos += 4, token = 38 /* ExclamationEqualsEqualsToken */;
|
|
8479
|
+
}
|
|
8475
8480
|
return pos += 3, token = 38 /* ExclamationEqualsEqualsToken */;
|
|
8476
8481
|
}
|
|
8477
8482
|
return pos += 2, token = 36 /* ExclamationEqualsToken */;
|
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.2.0-pr-
|
|
5
|
+
"version": "5.2.0-pr-54891-7",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"node": "20.1.0",
|
|
116
116
|
"npm": "8.19.4"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "10d90775d78339c5ac584cfad4943b07e0f2c868"
|
|
119
119
|
}
|