Skip to content

[WIP] feat(params): Support inline parameter documentation #756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

tmcw
Copy link
Member

@tmcw tmcw commented Apr 25, 2017

Not ready for a merge: right now this introduces a bug where the documentation comment is both used as part of the param, and also gets output on its own.

This allows users to add comments within destructuring patterns, ObjectPattern and ArrayPattern,
that add documentation for specific parameters.

Fixes #29

This allows users to add comments within destructuring patterns, ObjectPattern and ArrayPattern,
that add documentation for specific parameters.

Fixes #29
@arv
Copy link
Contributor

arv commented Apr 25, 2017

JSDoc usually comes before the code. Is that doable? If you put the comment on its own line or if the comment needs multiple lines it looks better before.

@tmcw
Copy link
Member Author

tmcw commented Apr 27, 2017

Totally, that's doable and preferable, both for uniformity and to avoid looking like Flow comments. I'll swap trailing for leading.

@tmcw
Copy link
Member Author

tmcw commented Oct 13, 2017

Punting on this in documentation.js, moving conversation to dx-spec tmcw/dx-spec#2

@tmcw tmcw closed this Oct 13, 2017
@tmcw tmcw deleted the inline-destructuring-parameter-docs branch April 11, 2018 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants