4 ms·
And if the package supports the "typings" property, you don't even need to separately install types.
by nawitus 10y ago
And if the package supports the "typings" property, you don't even need to separately install types.
- bcherny 10y agoIn my year or so of using TS, I've noticed that this is the only sort of typing that doesn't get out of date, and is high quality. Even something as popular as lodash typings lag behind the newest lodash releases, are missing typings, and have many poorly written types. I guess until typings are more broadly adopted and are shipped with most popular repos by default, this is the best we can do.
- drinchev 10y agoI doubt that typings will be shipped with most popular repos. I actually think, this is a dream that will never happen. What I think TS team did and I'm so happy about it is that they made the easiest possible way for us TS devs to contribute to the definition files in a distributed way.
- pyrophane 10y agoAgreed. Unless everyone starts developing in TypeScript then external types for JS files is always going to be a bit of pain and not quite where we'd like it to be.
- wereHamster 10y agoOr if the TS declaration file format gets widespread adoption among flow, babel, ECMAScript etc.