TypeStat
Converts JavaScript to TypeScript and TypeScript to better TypeScript.
Usage
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:
-
β¨ Convert JavaScript files to TypeScript in a single bound! -
β¨ Add TypeScript types on files freshly converted from JavaScript to TypeScript! -
β¨ Infer types to fix--noImplicitAny
and--noImplicitThis
violations! -
β¨ Annotate missingnull
s andundefined
s to get you started with--strictNullChecks
!
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.
Configuration
To get a deeper understanding of TypeStat, read the following docs pages in order:
- Usage.md for anβ¦