Converts JavaScript to TypeScript and TypeScript to better TypeScript. 🧫
MIT License
TypeStat is a CLI utility that modifies TypeScript types in existing code. The built-in mutators will only ever add or remove types and will never change your runtime behavior. TypeStat can:
⚡ To start, the typestat
command will launch an interactive guide to setting up a configuration file. ⚡
npx typestat
👋 Welcome to TypeStat! 👋 This will create a new typestat.json for you. ...
After, use typestat --config typestat.json
to convert your files.
To get a deeper understanding of TypeStat, read the following docs pages in order:
See .github/CONTRIBUTING.md
, then .github/DEVELOPMENT.md
for general tooling documentation.
For understanding the project, see ./docs
in general, and especially ./docs/Architecture.md
.
Thanks! 💖
💙 This package is based on @JoshuaKGoldberg's TypeStat.