-
Notifications
You must be signed in to change notification settings - Fork 487
Closed
Description
Documenting the elements of a destructured array argument
/** destructuring array */
function destructure([a: number, b: string]) {
}
Should result in something like
- $0[0] (number)
- $0[1] (string)
I think. It does not appear that JSDoc supports this style.
Questions:
- What to do about the names of the destructured results, like
a
andb
here? When we're dealing with object destructuring, the names are ones that you provide, but here they aren't sensical, since arrays only have indexes. My first guess is to simply discard them.
Metadata
Metadata
Assignees
Labels
No labels