DEV Community

Discussion on: Typescript for beginners: how to ignore code

Collapse
 
spock123 profile image
Lars Rye Jeppesen

In my opinion you should not teach beginners this. This will make it too easy to hide errors, every time they hit something they don't understand.

ts-ignore should be used very very reluctantly, not as a tool for beginners to ignore compilation errors.

Collapse
 
lborgman profile image
lborgman

Right at this moment I am one of this beginners. And as usual when I try something new in IT I immediately stumble on a bug - in TypeScript this time.

//@ts-ignore was what I needed. Hiding this from beginners seems to me to be a very, very bad idea. I think you assume that beginners have not been programming before. That is just wrong.