Meet type-tune! π¦ Give Your TypeScript Types a Better Home! πΈ
Post Β· https://dev.to/necoz/meet-type-tune-give-your-typescript-types-a-better-home-1p6l
Hoi hoi! π I'm @nyaomaru, a frontend engineer who is actually allergic to crabs! ππ¦ Today, I have...
First seen by Oriel on .
AI summary
type-tune is an open-source Rust CLI that finds shared TypeScript types and helps developers relocate them through a reviewable, validated refactoring workflow.
- It identifies exported type aliases and interfaces referenced by at least two other files, then creates JSON and Markdown plans with deterministic candidate IDs.
- Candidates default to ignore, so developers choose what moves and where before applying changes.
- The CLI updates supported type-only imports, aliases, and simple barrels, preserves compatibility re-exports, and validates rewrites with TypeScript.
- It supports .ts and .tsx files but does not automatically merge duplicate definitions or cover every TypeScript refactoring.
- The npm package requires Node.js v22 or later; building from source requires Rust 1.99 or later.
#typescript #rust #code refactoring
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days Β· Up to 120 recorded samples per source and metric, with reposts kept separate Β· First and latest retained
Reactions
Total public reactions reported by the source; distinct from points and likes.
- DEV Community: 118, latest observation ; +84 over observed period since
Comments
Comment count reported by the source.
- DEV Community: 41, latest observation ; +38 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| DEV Community | 4999208 | https://dev.to/necoz/meet-type-tune-give-your-typescript-types-a-better-home-1p6l Read discussion |