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

Can you perform type checking with JSDoc? As in, run type checks in CI/CD, commit hooks, etc?


Yes. As described in the article, the TypeScript compiler understands type annotations that are written in JSDoc syntax. So you can use `tsc`, just like you would to check `.ts` files.




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

Search: