typescript 5.9.0-dev.20250319 → 5.9.0-dev.20250320

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 CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.9";
21
- var version = `${versionMajorMinor}.0-dev.20250319`;
21
+ var version = `${versionMajorMinor}.0-dev.20250320`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
@@ -76787,8 +76787,8 @@ function createTypeChecker(host) {
76787
76787
  grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);
76788
76788
  }
76789
76789
  if (compilerOptions.erasableSyntaxOnly) {
76790
- const start = node.type.pos - "<".length;
76791
- const end = skipTrivia(file.text, node.type.end) + ">".length;
76790
+ const start = skipTrivia(file.text, node.pos);
76791
+ const end = node.expression.pos;
76792
76792
  diagnostics.add(createFileDiagnostic(file, start, end - start, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled));
76793
76793
  }
76794
76794
  }
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.9";
2288
- var version = `${versionMajorMinor}.0-dev.20250319`;
2288
+ var version = `${versionMajorMinor}.0-dev.20250320`;
2289
2289
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2290
2290
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2291
2291
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -81397,8 +81397,8 @@ function createTypeChecker(host) {
81397
81397
  grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);
81398
81398
  }
81399
81399
  if (compilerOptions.erasableSyntaxOnly) {
81400
- const start = node.type.pos - "<".length;
81401
- const end = skipTrivia(file.text, node.type.end) + ">".length;
81400
+ const start = skipTrivia(file.text, node.pos);
81401
+ const end = node.expression.pos;
81402
81402
  diagnostics.add(createFileDiagnostic(file, start, end - start, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled));
81403
81403
  }
81404
81404
  }
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.9.0-dev.20250319",
5
+ "version": "5.9.0-dev.20250320",
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": "ee3dd7264b23e58bbad86d08a475cac78f330abf"
119
+ "gitHead": "4dc677b292354f4b9162452b2e00f4d7dd118221"
120
120
  }