/stealth-adopting-typescript

Repo with example of app that can be migrated to TypeScript

Primary LanguageJavaScript

How to stealthly adopt TypeScript

Add some type defintions for reused types

  • user.d.ts

Add some type defintions for modules

  • userGenerator.d.ts

Add jsdoc comments

  • userRepository

Create tsconfig

  • include
  • default imports
  • allow js vs check js
  • strict?
  • auto imports now work with closed files

Integrate typescript into the build chain

  • babelrc
  • tsc watch

Convert first module to TypeScript

  • starting at the bottom is easier
  • userService
  • main
  • don't fear any