Migrate To Typescript
Migrate JavaScript project to TypeScript with proper typing and tooling setup
$ npx claude-code-templates@latest --command="setup/migrate-to-typescript" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Migrate to TypeScript
Migrate JavaScript project to TypeScript with comprehensive type safety: $ARGUMENTS
Current JavaScript State
- Project structure: @package.json (analyze JS/TS mix and dependencies)
- JavaScript files: !
find . -name ".js" -not -path "./node_modules/" | wc -l - Existing TypeScript: !
find . -name ".ts" -not -path "./node_modules/" | wc -l - Build system: @webpack.config.js or @vite.config.js or @rollup.config.js
Task
Systematically migrate JavaScript codebase to TypeScript with proper typing and tooling:
Migration Strategy: Use $ARGUMENTS to specify gradual migration, complete conversion, strict mode, or incremental approach Migration Process:- Environment Setup - TypeScript installation, tsconfig.json configuration, build tool integration
- Type Definitions - Install @types packages, create custom type declarations, define interfaces
- File Migration - Rename .js to .ts/.tsx, add type annotations, resolve compiler errors
- Code Transformation - Convert classes, functions, and modules with proper typing
- Error Resolution - Fix type mismatches, null/undefined handling, strict mode issues
- Testing & Validation - Update test files, configure type checking, validate type coverage
Related Claude Code Commands
Design Database Schema
Design optimized database schemas with proper relationships, constraints, and performance considerations
Setup Docker Containers
Setup Docker containerization with multi-stage builds and development workflows
Setup Development Environment
Setup comprehensive development environment with tools, configurations, and workflows
Setup Linting
Configure comprehensive code linting and quality analysis tools with automated enforcement
Design Rest Api
Design RESTful API architecture with comprehensive endpoints, authentication, and documentation
Create Database Migrations
Create and manage database migrations with proper versioning and rollback support
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.