Hacker News new | past | comments | ask | show | jobs | submit login

I believe it is also possible to create definition files, like c++ header files, for existing libraries. So for instance, if you want the type checking for backbone, you could create a backbone.d.ts and just include the class/method/function definitions (and interfaces if you want to) and not even touch the original library. I would imagine this is the preferred way of doing things still I would imagine most libraries are not going to want to convert there libraries to include TypeScript only syntax.



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

Search: