Skip to content

[Advice] JSDoc types questions from maintainers' perspectives #120

Discussion options

You must be logged in to vote

TS, while being a superset of JS, is not part of the JS standard. Things can and will change, and the cost to rewrite should be considered (history of JS innovations should be a guidance e.g. coffeescript, flow, babel etc). In general, if code is simply JS, then all is good.

Exactly.
I'd add that there is complexity, compatibility, and maintenance overhead to compiling/transpiling/bundling code.
If that can be avoided, for example if https://github.com/tc39/proposal-type-annotations becomes standard, we may leverage that syntax.

JSDoc is an agnostic documentation solution that plays well with TS but provides open paths in the future to either fully adopt or abandon TS. Docs are still r…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@chrisrzhou
Comment options

@chrisrzhou
Comment options

@ChristianMurphy
Comment options

@chrisrzhou
Comment options

Answer selected by chrisrzhou
Comment options

You must be logged in to vote
1 reply
@ChristianMurphy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants