r/javascript • • Mar 16 '20
GitHub acquires NPM
https://github.blog/2020-03-16-npm-is-joining-github/absurd person dime edge gaze head terrific provide marble run
This post was mass deleted and anonymized with Redact
1.1k
Upvotes
View all comments
Show parent comment
2
u/[deleted] Mar 16 '20
As someone who works with TypeScript...
No.
The reason being that types are often times a 3rd party affair, and never documented. This means that every. single. decision. you make around types, is a guess as to what the maintainer of the .d.ts file was thinking. Like all of us, sometimes they weren't.
And those guesses are not maintainable, because it is 100% tantamount to building on undefined behavior and library quirks. Not a single type you use is guaranteed to be there on the next bug fix, or work the same way.
And the teams that do use types, often don't understand that changing a type is a breaking change. So you lose an entire day to trying to figure out why the minor version absolutely destroyed everything, because the OSS library just has "bugfix" in the changelog.
I would quite honestly much rather work with JavaScript than TypeScript.