Manually adding types to your codebase can be a daunting task, especially given how much room there is for errors. It’s true that in some cases, the types will be obvious by just reading the code. But when I was adding types to a big project I inherited recently, I found myself actually running the code and setting a breakpoint inside a function to figure out the types that were being passed to it. This gave me an idea: build a tool that does this automatically and much faster, and then call it TypeWiz! TypeWiz is a tool that helps you enrich your TypeScript code while saving your precious time by automating the task of adding types to your code. TypeScript helps you ensure code quality (and also helps you explore your code), but it can only go so far on it’s own: you must provide it with type information to make the most of it.
Features
- Automatically discover and add missing types in your TypeScript code
- TypeWiz monitors your variable types in runtime
- Add missing type annotations to your TypeScript code
- To use TypeWiz from the command line try the TypeWiz CLI
- You can use the API directly
- Configuration options can be specified using the typewiz.json configuration file