typescript 5.8.0-dev.20250214 → 5.8.0-dev.20250216
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 +6 -4
- package/lib/typescript.js +6 -4
- 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.8";
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20250216`;
|
22
22
|
|
23
23
|
// src/compiler/core.ts
|
24
24
|
var emptyArray = [];
|
@@ -85063,11 +85063,10 @@ function createTypeChecker(host) {
|
|
85063
85063
|
return;
|
85064
85064
|
}
|
85065
85065
|
checkGrammarModifiers(node);
|
85066
|
-
|
85067
|
-
if (compilerOptions.erasableSyntaxOnly && isImportEquals && !(node.flags & 33554432 /* Ambient */)) {
|
85066
|
+
if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
|
85068
85067
|
error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
85069
85068
|
}
|
85070
|
-
if (
|
85069
|
+
if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
|
85071
85070
|
checkImportBinding(node);
|
85072
85071
|
markLinkedReferences(node, 6 /* ExportImportEquals */);
|
85073
85072
|
if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) {
|
@@ -85187,6 +85186,9 @@ function createTypeChecker(host) {
|
|
85187
85186
|
if (checkGrammarModuleElementContext(node, illegalContextMessage)) {
|
85188
85187
|
return;
|
85189
85188
|
}
|
85189
|
+
if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
|
85190
|
+
error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
85191
|
+
}
|
85190
85192
|
const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent;
|
85191
85193
|
if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) {
|
85192
85194
|
if (node.isExportEquals) {
|
package/lib/typescript.js
CHANGED
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
2285
2285
|
|
2286
2286
|
// src/compiler/corePublic.ts
|
2287
2287
|
var versionMajorMinor = "5.8";
|
2288
|
-
var version = `${versionMajorMinor}.0-dev.
|
2288
|
+
var version = `${versionMajorMinor}.0-dev.20250216`;
|
2289
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
2290
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
2291
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
@@ -89673,11 +89673,10 @@ function createTypeChecker(host) {
|
|
89673
89673
|
return;
|
89674
89674
|
}
|
89675
89675
|
checkGrammarModifiers(node);
|
89676
|
-
|
89677
|
-
if (compilerOptions.erasableSyntaxOnly && isImportEquals && !(node.flags & 33554432 /* Ambient */)) {
|
89676
|
+
if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
|
89678
89677
|
error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
89679
89678
|
}
|
89680
|
-
if (
|
89679
|
+
if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
|
89681
89680
|
checkImportBinding(node);
|
89682
89681
|
markLinkedReferences(node, 6 /* ExportImportEquals */);
|
89683
89682
|
if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) {
|
@@ -89797,6 +89796,9 @@ function createTypeChecker(host) {
|
|
89797
89796
|
if (checkGrammarModuleElementContext(node, illegalContextMessage)) {
|
89798
89797
|
return;
|
89799
89798
|
}
|
89799
|
+
if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
|
89800
|
+
error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
89801
|
+
}
|
89800
89802
|
const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent;
|
89801
89803
|
if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) {
|
89802
89804
|
if (node.isExportEquals) {
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "typescript",
|
3
3
|
"author": "Microsoft Corp.",
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
5
|
-
"version": "5.8.0-dev.
|
5
|
+
"version": "5.8.0-dev.20250216",
|
6
6
|
"license": "Apache-2.0",
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
8
8
|
"keywords": [
|
@@ -116,5 +116,5 @@
|
|
116
116
|
"node": "20.1.0",
|
117
117
|
"npm": "8.19.4"
|
118
118
|
},
|
119
|
-
"gitHead": "
|
119
|
+
"gitHead": "0f4737e0d55363ac40198b33a80fff0d01c1d8cf"
|
120
120
|
}
|