Skip to main content
plugin

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

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add rohitg00/awesome-claude-code-toolkit
/plugin install type-migrator@claude-code-toolkit
Open on GitHub

What 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.js to TypeScript with proper type definitions
  • Convert the api/client.js file 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-toolkit

Step 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

Similar plugins

All plugins for Programming languages →

From the same set178

The whole set →
update-branch update-branch — a Claude Code plugin that rebases feature branches onto the main branch and resolves merge conflicts. Runs when syncing long-lived branches before a merge. ★ 2,858repo stars unit-test-generator unit-test-generator generates unit tests for any function or module in Claude Code. Useful when you need to cover code with tests without writing boilerplate scenarios by hand. ★ 2,858repo stars ultrathink The ultrathink plugin enables deep analysis with extended reasoning, aimed at complex problems that need more than a brief response. ★ 2,858repo stars ui-designer ui-designer — a Claude Code plugin that generates UI components from design specs with pixel precision. Runs when you need to turn a mockup into code without manual layout work. ★ 2,858repo stars test-writer test-writer generates unit and integration tests to ensure code coverage. Runs when setting up test suites or filling testing gaps across a project. ★ 2,858repo stars test-results-analyzer test-results-analyzer analyzes test failures in Claude Code, spots recurring error patterns, and suggests targeted code fixes. ★ 2,858repo stars test-data-generator test-data-generator — a Claude Code plugin that generates realistic test data and populates databases. Works directly in the editor when you need to quickly prepare datasets for development or testing. ★ 2,858repo stars terraform-helper terraform-helper — a Claude Code plugin that streamlines Terraform module creation and infrastructure planning. Generates configurations and module structures from architecture descriptions, cutting down template work. ★ 2,858repo stars

Project sponsors

Companies that keep this analytics open