DEV Community

Discussion on: Getting Started With TypeScript

 
rkallan profile image
RRKallan

TS expect / ignore

The ideas which when to use, have you points to add? Or other advice?

Thread Thread
 
tylim88 profile image
Acid Coder

a good analogy is something like const and let vs var

in what case you need var? almost none

so I never use ts ignore, I only use ts expect error

if you find yourself in need of ts ignore, you probably need refactoring or you have compatibility issue