Skip to content
CommandImported

migrate-to-typescript

Migrate JavaScript project to TypeScript with proper typing and tooling setup

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 1 · Size: 2.9 KB

Download the ZIP

The file carries the license of the original source.

Install

After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.

  • For this project

    It goes in: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/migrate-to-typescript.zip -d .claude/commands

  • For your account on the whole machine

    It goes in: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/migrate-to-typescript.zip -d ~/.claude/commands

Instructions

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:

  1. Environment Setup - TypeScript installation, tsconfig.json configuration, build tool integration
  2. Type Definitions - Install @types packages, create custom type declarations, define interfaces
  3. File Migration - Rename .js to .ts/.tsx, add type annotations, resolve compiler errors
  4. Code Transformation - Convert classes, functions, and modules with proper typing
  5. Error Resolution - Fix type mismatches, null/undefined handling, strict mode issues
  6. Testing & Validation - Update test files, configure type checking, validate type coverage

Advanced Features: Generic types, mapped types, conditional types, module augmentation, and strict compiler settings.

Developer Experience: Configure IDE integration, debugging, linting rules, and team onboarding.

Output: Fully typed TypeScript codebase with strict type checking, comprehensive IntelliSense, and improved developer productivity.

Files

  • LICENSE1 KB
  • migrate-to-typescript.md1.8 KB

What the automatic scan found

We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.

  • Needs a lookAllowed tools with no limits

    In file cli-tool/components/commands/setup/migrate-to-typescript.md

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • CommandImported

    api-mock

    Build realistic API mock servers with request stubbing, dynamic data, test scenarios, and contract testing

    MITFiles: 1

  • CommandImported

    design-rest-api

    Design RESTful API architecture with comprehensive endpoints, authentication, and documentation

    MITFiles: 1

  • CommandImported

    doc-api

    Generate comprehensive API documentation from code with interactive examples and testing capabilities

    MITFiles: 1

  • CommandImported

    feature-development

    Orchestrate end-to-end feature development from requirements to deployment

    MITFiles: 1

  • CommandImported

    generate-api-documentation

    Auto-generate API reference documentation with multiple output formats and automated deployment

    MITFiles: 1

  • CommandImported

    implement-caching-strategy

    Design and implement comprehensive caching solutions for improved performance and scalability

    MITFiles: 1