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

Typescript has the any type when you need it. You can write your code well typed but treat api returns as any if you wish. Although entering a type definition even for 100 types isn’t a big hassle, compared to day the code that has to do something with those objects. And will probably save the odd mistake so probably comes out ahead in terms of efficiency.


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

Search: