Converts JavaScript to TypeScript and TypeScript to better TypeScript. ๐งซ
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:
--noImplicitAny
and --noImplicitThis
violations!null
s and undefined
s to get you started with --strictNullChecks
!โก 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.