@typescript-deploys/pr-build 5.5.0-pr-57133-18 → 5.5.0-pr-57575-33
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 +9 -1
- package/lib/tsserver.js +9 -1
- package/lib/typescript.js +178182 -178369
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -44606,7 +44606,11 @@ function createTypeChecker(host) {
|
|
|
44606
44606
|
}
|
|
44607
44607
|
});
|
|
44608
44608
|
function addDeclarationDiagnostic(id, message2) {
|
|
44609
|
-
return (declaration) =>
|
|
44609
|
+
return (declaration) => {
|
|
44610
|
+
if (!isTypeDeclaration(declaration) && declaration.kind !== 263 /* ClassDeclaration */ && declaration.kind !== 267 /* ModuleDeclaration */) {
|
|
44611
|
+
diagnostics.add(createDiagnosticForNode(declaration, message2, id));
|
|
44612
|
+
}
|
|
44613
|
+
};
|
|
44610
44614
|
}
|
|
44611
44615
|
}
|
|
44612
44616
|
function getSymbolLinks(symbol) {
|
|
@@ -79464,6 +79468,7 @@ function createTypeChecker(host) {
|
|
|
79464
79468
|
case "symbol":
|
|
79465
79469
|
case "void":
|
|
79466
79470
|
case "object":
|
|
79471
|
+
case "undefined":
|
|
79467
79472
|
error(name, message, name.escapedText);
|
|
79468
79473
|
}
|
|
79469
79474
|
}
|
|
@@ -80524,6 +80529,9 @@ function createTypeChecker(host) {
|
|
|
80524
80529
|
registerForUnusedIdentifiersCheck(node);
|
|
80525
80530
|
}
|
|
80526
80531
|
}
|
|
80532
|
+
if (node.name.kind === 80 /* Identifier */) {
|
|
80533
|
+
checkTypeNameIsReserved(node.name, Diagnostics.Namespace_name_cannot_be_0);
|
|
80534
|
+
}
|
|
80527
80535
|
addLazyDiagnostic(checkModuleDeclarationDiagnostics);
|
|
80528
80536
|
function checkModuleDeclarationDiagnostics() {
|
|
80529
80537
|
var _a, _b;
|
package/lib/tsserver.js
CHANGED
|
@@ -49325,7 +49325,11 @@ function createTypeChecker(host) {
|
|
|
49325
49325
|
}
|
|
49326
49326
|
});
|
|
49327
49327
|
function addDeclarationDiagnostic(id, message2) {
|
|
49328
|
-
return (declaration) =>
|
|
49328
|
+
return (declaration) => {
|
|
49329
|
+
if (!isTypeDeclaration(declaration) && declaration.kind !== 263 /* ClassDeclaration */ && declaration.kind !== 267 /* ModuleDeclaration */) {
|
|
49330
|
+
diagnostics.add(createDiagnosticForNode(declaration, message2, id));
|
|
49331
|
+
}
|
|
49332
|
+
};
|
|
49329
49333
|
}
|
|
49330
49334
|
}
|
|
49331
49335
|
function getSymbolLinks(symbol) {
|
|
@@ -84183,6 +84187,7 @@ function createTypeChecker(host) {
|
|
|
84183
84187
|
case "symbol":
|
|
84184
84188
|
case "void":
|
|
84185
84189
|
case "object":
|
|
84190
|
+
case "undefined":
|
|
84186
84191
|
error2(name, message, name.escapedText);
|
|
84187
84192
|
}
|
|
84188
84193
|
}
|
|
@@ -85243,6 +85248,9 @@ function createTypeChecker(host) {
|
|
|
85243
85248
|
registerForUnusedIdentifiersCheck(node);
|
|
85244
85249
|
}
|
|
85245
85250
|
}
|
|
85251
|
+
if (node.name.kind === 80 /* Identifier */) {
|
|
85252
|
+
checkTypeNameIsReserved(node.name, Diagnostics.Namespace_name_cannot_be_0);
|
|
85253
|
+
}
|
|
85246
85254
|
addLazyDiagnostic(checkModuleDeclarationDiagnostics);
|
|
85247
85255
|
function checkModuleDeclarationDiagnostics() {
|
|
85248
85256
|
var _a, _b;
|