logoalt Hacker News

Meradyesterday at 3:35 PM1 replyview on HN

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


Replies

matt_kantoryesterday at 5:56 PM

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.