DEV Community

Discussion on: A Simple Argument For Typescript

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

You might also try JSDoc. But if you are stuck with JavaScript, but what strict type checking, try // @ts-check.

Every JS dev should document with JSDoc, I think, even if no type checking.

However, TypeScript is not always friendly with JSDoc (or even TSDoc).

Thread Thread
 
seanmclem profile image
Seanmclem

Self-documenting code is pretty nice too.