JoshuaKGoldberg/TypeStat
JoshuaKGoldberg/TypeStat has 2,255 GitHub stars and 46 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 22:08 UTC. Last push 2026-10-30.
Converts JavaScript to TypeScript and TypeScript to better TypeScript. 🧫
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalTypeStat
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
--noImplicitAnyand--noImplicitThisviolations! - ✨ Annotate missing
nulls andundefineds 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.
Configuration
To get a deeper understanding of TypeStat, read the following docs pages in order:
- Usage.md for an explanation of how TypeStat works
- Fixes.md for the type of fixes TypeStat will generate mutations for
- Cleanups.md for the post-fix cleaning TypeStat may apply to files
- Types.md for configuring how to work with types in mutations
- Filters.md for using tsquery to ignore sections of source files
- Custom Mutators.md for including or creating custom mutators
Development
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! 💖
Contributors
💙 This package is based on @JoshuaKGoldberg's TypeStat.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,788 starspublic-apis/public-apis
A collective list of free APIs
497,009 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
440,887 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,144 stars