google / google/closure-compiler
JSDoc support for array destructuring
Open
enhancement
ES6
- Dominant language
- JavaScript
- Stars
- 7.7k
- Forks
- 1.2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 6
Description
Currently there is no simple way to annotate destructured array parameters.
I propose a syntax similar to the current destructured objects syntax:
``` javascript
/**
* @param {[x: number, y: number]} randomName
* @return number
*/
function add([x, y]) {
return x + y;
}
```
Due to the nature of destructured arrays, this issue is closely related to [#379](https://github.com/google/closure-compiler/issues/379).
Contributor guide
Assessment
This issue has not been assessed yet.