TypeScript Errors Explained

TypeScript errors aren't out of the ordinary. They just require some explanation. And that's what I help you with understanding here, as well as solutions.

Cannot redeclare block-scoped variable

Why does this error exist even when I don't have any duplicate variables in my code? Well, you probably do, but you just don't see it. Let me show you.

Insufficient overlaps with types - Convert to unknown first

What does this error mean? How do I know what types overlap in TypeScript? How does unknown solve the problem here?

No Index Signature - Expression cannot be used to index type

What does this error mean, and how can I solve it?