Sometimes it's helpful to add a description to what a function does or what a function is expecting. You can in JSTOCK, you just put a dash after you describe what your parameters or return types are. And that will pop up when you hover over top of it. There's also some really interesting little extra features like being able to describe something as departure which strikes through in your editor.
In this episode of Syntax, Wes and Scott use the fact that Svelte is being converted from TypeScript to JavaScript with JSDoc to talk about the benefits of working that way, why they are doing it, and what you can do with JSDoc that TypeScript alone doesn’t let you do.
Show Notes
××× SIIIIICK ××× PIIIICKS ×××
Shameless Plugs
Tweet us your tasty treats