Learn how to gradually migrate a Node.js application from JavaScript to TypeScript.

In this video, I cover the the following:

  • How to set up a tsconfig.json file.
  • How to fix TypeScript errors when converting JS files to TS.
  • How to use a combination of CommonJs and ES6 modules with esModuleInterop configuration.
  • How to use a hybrid approach of TypeScript and JavaScript using allowJs configuration.
  • How to set up custom type definitions for NPM packages by declaring modules.
  • How to convert unit tests written using mocha and chai to TypeScript.

Subscribe: https://www.youtube.com/channel/UClFBqmnEsUI2z8zpHj8UiqQ/featured

#javascript #typescript

Migrate a Node.js app from JavaScript to TypeScript | Tips for Gradual Adoption
31.25 GEEK