Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
JSDoc types are not TypeScript types (jcbhmr.me)
4 points by jcbhmr 7 months ago | hide | past | favorite | 1 comment


This is because JSDoc types are documentation tags and TS Types are compilation instructions/safeguards. One generally chooses JSDocs when it is determined that type safeguards are not worth the maintenance and/or migration cost of converting to Typescript.




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

Search: