DEV Community

Discussion on: Your code should tell a story: Tips for writing code for others to read

Collapse
 
lexlohr profile image
Alex Lohr

If you can, use TypeScript to document the API. The reading flow is better than with plain JSDoc. The IDE integration will make working with your code a pleasure. Pro-Tip: use JSDoc comments to comment more complex types - this documentation will then be shown on hover in modern IDEs.

Collapse
 
collinstommy profile image
Tom Collins

I used Typescript a couple of years ago. I definitely want to pick it back up again.