Published on

Disable Type Checking for Single Line in TypeScript


We recently saw how to disable type-checking for a entire file using ts-nocheck

Similarly, we can ignore the by using @ts-ignore

Just add it in front of the line and it'll ignore checking type for the next line

// @ts-ignore
// You code here 🧑‍💻

Happy disabling rules!