6 ms·
One advantage of going to JsDoc type annotations for some libraries is that you don't need to deal with sourcemaps. People can use the source code as-is and the
by skybrian 3y ago
One advantage of going to JsDoc type annotations for some libraries is that you don't need to deal with sourcemaps. People can use the source code as-is and they can bundle and minify it if they like.
That doesn't seem to be what this is about, though.
- Waterluvian 3y agoHmmm you got me thinking. I wonder if there’s a sensible story for ts to “compile” to JS with jsdoc annotations. I know you can make it emit perfectly legible, formatted JS, but I’m not aware of the docs.