Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes. And, having worked with typescript, its quite annoying how poor most typings files are that you get from the definitelytyped repository. It's better than nothing, but they are unversioned (so always behind) and often very incomplete.

I agree with the author: types are there anyway, typescript seems to work well enough and has traction now, so please, if you write a library: add those type annotations bottom-up in the library and let typescript generate a nice .d.ts declaration file and standardized module stub around that final javascript library.



I don't agree. Bad documentation is worse than no documentation. At least with no documentation, I start with the expectation that I have to figure everything out on my own.


Or... at least accept the pull requests that have them cough async cough




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: