question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bloomberg feedback on TypeScript 4.6 Beta

See original GitHub issue

This issue has been created by the team responsible for the infrastructure behind most of Bloomberg’s TypeScript code.

Summary

We have tested TypeScript 4.6.0-beta on our codebase and our experimentation has not revealed any new errors in TypeScript source, pointing to this being a straightforward update.

Grammar Errors in JavaScript Files

As reported in the 4.6 iteration plan, TypeScript now reports grammar errors for JavaScript files contained within TypeScript projects: https://github.com/microsoft/TypeScript/issues/45349

These errors are now reported even when checkJs is not specified, and require explicit checkJs: false to disable them:

Before:

  • checkJs false or <unspecified>: no diagnostics on *.js files
  • checkJs true: grammar + inference-based type errors on *.js files

After:

  • checkJs false: no diagnostics on *.js files
  • checkJs <unspecified>: grammar errors on *.js files
  • checkJs true: grammar + inference-based type errors on *.js files

Is it intentional that users now need to be explicit to avoid any errors on *.js files?

Credits to @dragomirtitian & @tchetwin for helping with this investigation.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sandersncommented, Feb 9, 2022

@molisani It would help me to talk to you to decide whether Bloomberg’s errors will appear in most other codebases and whether to turn off that error. I sent you a DM on twitter in case you have time in the next couple of days.

0reactions
sandersncommented, Feb 9, 2022

From talking in person, it sounds like the mismatch between the new errors and the runtime should only apply to Bloomberg, and the few other people who are using that (quite old) runtime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bloomberg feedback on TypeScript 4.7 Beta #49071 - GitHub
We are in the process of evaluating the impact of upgrading to 4.7 on our codebase. Here some preliminary findings: # Change Affects...
Read more >
Announcing TypeScript 4.6 Beta - Microsoft Developer Blogs
Today we are excited to announce the beta release of TypeScript 4.6! To get started using the beta, you can get it through...
Read more >
10 Insights from Adopting TypeScript at Scale | Bloomberg LP
This article shares some of the insights and lessons we learned during this journey. The headline is that we found TypeScript to be...
Read more >
Announcing TypeScript 2.0 Beta : r/programming - Reddit
115 votes, 44 comments. 4.9M subscribers in the programming community. Computer Programming.
Read more >
TypeScript 4.6 Beta Improves Type Inference and Error ... - InfoQ
Thanks to better recursion depth checks, TypeScript is now better at identifying errors caused by infinitely expanding generic types. As a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found