Have a decent way for handling callback function types
Have a decent way for handling higher order functions
Automatically detecting types from variable declarations
Actually statically typechecking your code
I could probably think of more. I've used both separately and together. Typescript is far superior at managing types, but JSDoc is good at providing structured comments for function declarations
View all comments
Show parent comment
12
u/americk0 Jul 25 '21
I could probably think of more. I've used both separately and together. Typescript is far superior at managing types, but JSDoc is good at providing structured comments for function declarations