6 ms·
What I would love to see is JSdoc annotations being output from the Ts->Js step. I already add types to everything, my api documentation should be simple to gen
by verusfossa 11y ago
What I would love to see is JSdoc annotations being output from the Ts->Js step. I already add types to everything, my api documentation should be simple to generate per function. Would be DRY and another feather in Typescript's cap IMHO.
https://github.com/Microsoft/TypeScript/issues/10 https://github.com/Microsoft/TypeScript/issues/10
- nkassis 11y agoIt would be great if it did. I heard somewhere that the TypeScript team were also looking at outputting closure annotation to help the closure compiler optimize TS output.
- Arnavion 11y agoClosure supports nullability (and non-nullability) annotations which TS does not. Otherwise it's fairly straightforward to do this already, with the current compiler API.