Using TypeScript for pure JavaScript

Share this video with your friends

Send Tweet

TypeScript can actually be used just as a JavaScript -> JavaScript Transpiler e.g. ES6 -> ES5. This allows you to easily maintain your old JavaScript code base along with potentially uplifting to a TypeSafe version using a single compiler.

peterschussheim
~ 7 years ago

What editor are you using?

also, why use this method instead of babel?

Basarat Ali Syedinstructor
~ 7 years ago

What editor are you using?

http://alm.tools/ Created specifically to give a reliable deterministic TypeScript experience so I don't have to fight the IDE when teaching (or even doing real world projects).

Why use this method instead of babel?

Autocomplete is a big one. Plus a smooth migration to TypeScript proper if you ever wanted 🌹