<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: i-am-killvish</title>
    <description>The latest articles on DEV Community by i-am-killvish (@iamkillvish).</description>
    <link>https://dev.to/iamkillvish</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3896833%2F6855fff4-8708-4764-9354-c9c245af8018.png</url>
      <title>DEV Community: i-am-killvish</title>
      <link>https://dev.to/iamkillvish</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iamkillvish"/>
    <language>en</language>
    <item>
      <title>I built a CLI that fixes TypeScript errors automatically</title>
      <dc:creator>i-am-killvish</dc:creator>
      <pubDate>Sat, 25 Apr 2026 01:20:24 +0000</pubDate>
      <link>https://dev.to/iamkillvish/i-built-a-cli-that-fixes-typescript-errors-automatically-8e3</link>
      <guid>https://dev.to/iamkillvish/i-built-a-cli-that-fixes-typescript-errors-automatically-8e3</guid>
      <description>&lt;p&gt;Fixing TypeScript errors like:&lt;/p&gt;

&lt;p&gt;“Expected 1 arguments, but got 0 (TS2554)”&lt;/p&gt;

&lt;p&gt;gets repetitive really fast.&lt;/p&gt;

&lt;p&gt;So I built a small CLI tool called fixmyfile that automatically fixes some common TypeScript errors using the compiler API and AST transformations.&lt;/p&gt;

&lt;h2&gt;
  
  
  ⚡ Demo
&lt;/h2&gt;

&lt;p&gt;Fixing a TypeScript error automatically:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3vlll5uad82m62pq4tmt.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3vlll5uad82m62pq4tmt.gif" alt=" " width="720" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🧠 What it does
&lt;/h2&gt;

&lt;p&gt;The tool:&lt;/p&gt;

&lt;p&gt;scans a .ts file&lt;br&gt;
detects TypeScript compiler errors&lt;br&gt;
applies automatic fixes&lt;br&gt;
repeats until no more changes are possible&lt;/p&gt;

&lt;h2&gt;
  
  
  ⚡ Example
&lt;/h2&gt;

&lt;p&gt;❌ Before&lt;br&gt;
function greet(name: string) {&lt;br&gt;
  console.log(name);&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;greet(); // missing args&lt;br&gt;
✅ After&lt;br&gt;
greet("text");&lt;/p&gt;

&lt;h2&gt;
  
  
  🖥 Try it
&lt;/h2&gt;

&lt;p&gt;You can run it directly using:&lt;/p&gt;

&lt;p&gt;npx fixmyfile yourfile.ts&lt;/p&gt;

&lt;h2&gt;
  
  
  🧩 Currently supports
&lt;/h2&gt;

&lt;p&gt;Missing function arguments (TS2554)&lt;br&gt;
Basic type mismatch fixes (TS2322)&lt;br&gt;
Undefined references (TS2304)&lt;/p&gt;

&lt;h2&gt;
  
  
  ⚠️ Note
&lt;/h2&gt;

&lt;p&gt;This is still experimental and focuses on common, repetitive fixes.&lt;br&gt;
Always review the output before committing changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  💬 Feedback
&lt;/h2&gt;

&lt;p&gt;Would love to know:&lt;/p&gt;

&lt;p&gt;Did it work on your code?&lt;br&gt;
What errors should it support next?&lt;br&gt;
Where did it break?&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://github.com/i-am-killvish/fixmyfile" rel="noopener noreferrer"&gt;https://github.com/i-am-killvish/fixmyfile&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🚀 Why I built this
&lt;/h2&gt;

&lt;p&gt;I kept running into the same TypeScript errors du&lt;a href="![%20](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r0oxhmpvz70yltsh90uz.gif)"&gt;&lt;/a&gt;ring development and realized many of them are predictable enough to automate.&lt;/p&gt;

&lt;p&gt;This is an early attempt at making that process faster.&lt;/p&gt;

&lt;p&gt;If this sounds useful, give it a try and let me know what you think 🙂&lt;/p&gt;

</description>
      <category>typescript</category>
      <category>productivity</category>
      <category>javascript</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
