getdocs icon indicating copy to clipboard operation
getdocs copied to clipboard

Support documentation on destructuring definitions/assignments

Open marijnh opened this issue 10 years ago • 3 comments

Maybe? I don't think I've ever defined an exported item this way. But you could, and getdocs will currently explode if you try to document such a thing.

marijnh avatar Dec 10 '15 11:12 marijnh

That could be very useful. The output format for named positional parameters wouldn't have to be all that different from named destructured parameters. Could offer a PR.

seidtgeist avatar Dec 10 '15 12:12 seidtgeist

Ah, right, we're also dealing with function arguments, where destructuring will definitely come up.

marijnh avatar Dec 10 '15 12:12 marijnh

Haha, it appears we were thinking of different things. New issue for this use case then?

export const forPythagoreals = ({a, b, c}) => a * a + b * b = c * c

seidtgeist avatar Dec 10 '15 12:12 seidtgeist