Skip to content

Add TypeScript support and TS-specific patterns #84

@naheel0

Description

@naheel0

Title: Add TypeScript support and TS-specific patterns

Problem

No explicit TypeScript error handling in the DB and run doesn't handle .ts execution.

Proposed change

Extend the error database with common TypeScript diagnostics and detect .ts error messages. Optionally support running .ts files with ts-node when available.

Files to change

  • bin/index.js (detect .ts and attempt ts-node execution when present)
  • lib/database.json (add TS-specific match entries)
  • locales/en.json (add translations for TS messages)

Tasks

  • Add ~20 TS-specific match patterns to DB.
  • Detect .ts extension in run and check for ts-node/tsx availability; otherwise show a helpful message.
  • Add tests for TS message matching.

Acceptance criteria

  • TS errors are recognized and produce helpful explanations.
  • analyze works on TS error strings.

Labels: enhancement, medium-priority

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestmedium-priorityMedium-priority work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions