Lil’ TypeScript tip: Instead of using `@ts-ignore` for stuff you don’t feel like fixing rn, use `@ts-expect-error`.

When you do fix the issue, `@ts-expect-error` will *itself* become an error (which you can fix by deleting the comment).

That way, you avoid stale ignores that aren’t needed anymore.
Post image

Comments