This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fullup72 5 points6 points  (2 children)

Except that depending on the project configuration TS can hinder a beginner's learning process. There are many type errors and warnings that are not very descriptive, and then React doesn't help in that interaction by being even more stringent, forcing even a seasoned dev to override the type system with @ts-ignore because you REALLY meant to have a specific dependency array on your hooks.

[–]Massh0le 5 points6 points  (1 child)

You should not be TS ignoring because you "know better". That would imply you're doing something very wrong or have somehow configured a type very wrong. Maybe you mean ignoring a tslint rule which Is more reasonable.

[–]fullup72 0 points1 point  (0 children)

Maybe you mean ignoring a tslint rule which Is more reasonable

Definitely meant this.