Phil Nash
4 Steps from JavaScript to TypeScript
#1about 4 minutes
Evaluating the pros and cons of TypeScript adoption
Consider the benefits of type safety and improved tooling against the costs of a learning curve and build overhead before migrating a project.
#2about 3 minutes
Step 1: Enable TypeScript type checking for JavaScript files
Use editor settings like `checkJs` or a `// @ts-check` comment to get immediate type feedback on your JavaScript code without any build changes.
#3about 5 minutes
Step 2: Introduce the TypeScript compiler with a minimal setup
Add TypeScript as a dependency and configure `tsconfig.json` with non-strict settings like `allowJs` to compile existing JavaScript without errors.
#4about 3 minutes
Step 3: Enable build-time type checking for JavaScript files
Activate `checkJs` in your `tsconfig.json` to enforce type safety during the build and install necessary `@types` packages for dependencies.
#5about 4 minutes
Leverage JS Doc for type safety in JavaScript
Add types to your JavaScript project using JS Doc comments, allowing TypeScript to provide strong typing without converting files to `.ts`.
#6about 5 minutes
Step 4: Incrementally convert JavaScript files to TypeScript
Gradually rename `.js` files to `.ts` one at a time, updating syntax from CommonJS to ES Modules and adding explicit types as you go.
#7about 2 minutes
Recap of the four-step JavaScript to TypeScript migration
Review the complete migration path, from enabling editor checks and introducing the compiler to incrementally converting files and adding types.
#8about 2 minutes
How to convince your team to adopt TypeScript
Demonstrate the value of TypeScript by enabling `checkJs` on an existing project to reveal hidden type-related issues as a practical proof point.
Related jobs
Jobs that call for the skills explored in this talk.
Hubert Burda Media
München, Germany
€80-95K
Intermediate
Senior
JavaScript
Node.js
+1
Matching moments
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
02:49 MIN
Using AI to overcome challenges in systems programming
AI in the Open and in Browsers - Tarek Ziadé
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
09:00 MIN
Navigating the growing complexity of modern CSS
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
08:07 MIN
Exploring modern JavaScript performance and new CSS features
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
14:14 MIN
Scripting presentations and demos in VS Code
Devs vs. Marketers, COBOL and Copilot, Make Live Coding Easy and more - The Best of LIVE 2025 - Part 3
07:46 MIN
The challenge of keeping up with modern CSS
WeAreDevelopers LIVE – AI, Freelancing, Keeping Up with Tech and More
03:58 MIN
Making accessibility tooling actionable and encouraging
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
Featured Partners
Related Videos
Do TypeScript without TypeScript
Simone Sanfratello
Don't compromise on speedy delivery nor type-safety by choosing TypeScript
Jens Claes
All you need is types
Tal Joffe
Building software that scales with Typescript
Tal Joffe
Lies we Tell Ourselves As Developers
Stefan Baumgartner
Where we're going we don't need JavaScript - Programming with Type Annotations
Peter Kröner
Advanced Typing in TypeScript
Lars Hupel
Svelte ♥ TypeScript and so will you
Ivan Hofer
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Confideck GmbH
Vienna, Austria
Remote
Intermediate
Senior
Node.js
MongoDB
TypeScript


Provectus
Remote
API
GIT
JSON
REST
+11

Rithum
Remote
Intermediate
API
GIT
Azure
NoSQL
+19

United Kingdom - 2 minutes ago
Intermediate
API
GIT
Azure
React
Python
+6


Client Server
Cardiff, United Kingdom
Remote
£50-60K
API
Node.js
TypeScript
+1

