sachchaa/better-tsc-fixer
Automatically fix TypeScript type errors using AI (Anthropic Claude or OpenAI GPT)
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| fix-mode | How to deliver fixes: "push" commits directly to the branch, "pr" opens a pull request | no | push |
| llm-provider | LLM provider to use: "anthropic", "openai", or "openrouter" | no | anthropic |
| model | Model 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-key | Anthropic API key (required if llm-provider is "anthropic") | no | — |
| openai-api-key | OpenAI API key (required if llm-provider is "openai") | no | — |
| openrouter-api-key | OpenRouter API key (required if llm-provider is "openrouter") | no | — |
| github-token | GitHub token for pushing commits or creating PRs | yes | ${{ github.token }} |
| max-retries | Maximum number of fix iterations | no | 3 |
| tsconfig-path | Path to tsconfig.json | no | tsconfig.json |
Outputs
| name | description |
|---|---|
| fixed | Whether any errors were fixed ("true" or "false") |
| errors-before | Number of TypeScript errors before fixing |
| errors-after | Number of TypeScript errors after fixing |
| pr-url | URL of the created PR (only in "pr" mode) |