sachchaa/better-tsc-fixer

Automatically fix TypeScript type errors using AI (Anthropic Claude or OpenAI GPT)

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
fix-modeHow to deliver fixes: "push" commits directly to the branch, "pr" opens a pull requestnopush
llm-providerLLM provider to use: "anthropic", "openai", or "openrouter"noanthropic
modelModel name to use (e.g. "claude-sonnet-4-20250514", "gpt-4o", "openai/gpt-4o"). Defaults to the best model for the chosen provider.no
anthropic-api-keyAnthropic API key (required if llm-provider is "anthropic")no
openai-api-keyOpenAI API key (required if llm-provider is "openai")no
openrouter-api-keyOpenRouter API key (required if llm-provider is "openrouter")no
github-tokenGitHub token for pushing commits or creating PRsyes${{ github.token }}
max-retriesMaximum number of fix iterationsno3
tsconfig-pathPath to tsconfig.jsonnotsconfig.json
namedescription
fixedWhether any errors were fixed ("true" or "false")
errors-beforeNumber of TypeScript errors before fixing
errors-afterNumber of TypeScript errors after fixing
pr-urlURL of the created PR (only in "pr" mode)