Migrate a Node.js app from JavaScript to TypeScript | Tips for gradual adoption

preview_player
Показать описание

In this video, I cover the the following:
- 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.
Рекомендации по теме
Комментарии
Автор

Thanks Ambient Coder - This was quite a great way for me to learn TypeScript.

UsefulProgrammer
Автор

Thank you, it will help me a lot to migrate my personnal projet.

alexandre
Автор

Can you provide access to sample code explained here in this video

laxmiz
Автор

Nice. Do you have tips on setting up eslint to not be so aggressive while converting a project across?

Is there a balance between adding 1000 linting rules while still make sure eslint is useful and not a false confidence liability to the overall project?

Scetils