The TypeScript team is going to kill JavaScript
Published in
2 min readMar 12, 2022
When you read this title, you must be thinking: The TypeScript team is making some new features to attract developers so that no one will ever code plain JavaScript anymore? No.
A few days ago they have published a blog:
In short, they are proposing a “type syntax” for the future JavaScript standard which works very similar to what TypeScript has always been doing:
function add(a: number, b: number) {
return a + b;
}
What it does:
- The IDE extensions/tools can run static analysis based on the provided type
- The types will be completely ignored on browser/JavaScript runtime
Adding this syntax to the JavaScript standard, according to the TypeScript team, brings the following advantages:
- The “typed” code can be run on browsers directly without being transpiled (by tools like Webpack)
- Therefore developers who would like to code “typed” JavaScript can skip the “build” step which now is a must