type-migrator — Claude Code plugin: what it does, how to install
type-migrator converts JavaScript source files to TypeScript with accurate type definitions. Runs during codebase modernization and legacy refactoring passes.
Apache-2.0 ★ 2,858 updated 2026-05-12
/plugin marketplace add rohitg00/awesome-claude-code-toolkit
/plugin install type-migrator@claude-code-toolkitWhat type-migrator does
This plugin converts JavaScript files into TypeScript. It updates file extensions and generates concrete types for parameters, variables, and return values instead of relying on blank any declarations.
The tool handles incremental code migration file by file. Because it only generates TypeScript syntax, your repository still requires a working tsconfig.json to compile and validate the result.
What it helps with
- convert existing JavaScript modules to TypeScript
- add concrete types to function arguments and return values
- prepare legacy code for TypeScript compiler verification
Example prompts for the agent
- Migrate
src/utils/parser.jsto TypeScript with proper type definitions - Convert the
api/client.jsfile into TypeScript and type all parameters
How to install type-migrator
Plugin marketplace
/plugin marketplace add rohitg00/awesome-claude-code-toolkit/plugin install type-migrator@claude-code-toolkitStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about type-migrator
How do I install type-migrator in Claude Code?
Run /plugin marketplace add rohitg00/awesome-claude-code-toolkit in Claude Code, then run /plugin install type-migrator@claude-code-toolkit.
What does type-migrator do?
It migrates JavaScript files to TypeScript while adding appropriate type annotations to functions and variables.
Does type-migrator require a TypeScript setup?
Yes, you need an existing tsconfig.json in your repository so the TypeScript compiler can validate the migrated code.
Source text
type-migrator · Apache-2.0
Migrate JavaScript files to TypeScript with proper types
© rohitg00 · Apache-2.0 · rohitg00/awesome-claude-code-toolkit