you have to deal with implicit types that you didn’t define because they came from some library with no documentation
Nitpick, if they’re coming from a library then they’re almost always explicit because TS libraries are shipped as JS files with type declaration files (which explicitly define the types for the public API).
Arguably you have to deal with these types anyway, it’s just in JS the type checker is your own brain, which is a lot less reliable 😛
Though 3rd party types can propagate through your code depending on how you write it, and then yes you might have to use the third party types elsewhere in your code.
Ultimately I agree that it’s sometimes more hindrance than help. But for most commercial projects it’s definitely more help than hinderance (speaking from experience of working with JS and TS on commercial projects).
View all comments
Show parent comment
4
u/AverageHot2647 Sep 19 '26
Nitpick, if they’re coming from a library then they’re almost always explicit because TS libraries are shipped as JS files with type declaration files (which explicitly define the types for the public API).
Arguably you have to deal with these types anyway, it’s just in JS the type checker is your own brain, which is a lot less reliable 😛
Though 3rd party types can propagate through your code depending on how you write it, and then yes you might have to use the third party types elsewhere in your code.
Ultimately I agree that it’s sometimes more hindrance than help. But for most commercial projects it’s definitely more help than hinderance (speaking from experience of working with JS and TS on commercial projects).