-
Notifications
You must be signed in to change notification settings - Fork 486
Is it possible to rename $0 when documenting destructured params? #677
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
Comments
Sorry, currently that's not possible. The relevant code is documentation/lib/infer/params.js Lines 203 to 227 in f07285a
We're handling:
But we don't yet support naming destructuring params, but I'd be overjoyed to review a PR implementing such support. Most likely it'd, instead of indexing params by name and matching them that way, as we do currently, would assume that if someone uses |
This will be fixed in #732 - in fact, it'll be required that to refer to inferred destructuring arguments, you need to name them. |
It's possible to name the parts of
$0
, which is great, but it'd be nice if I could name$0
itself. Is this possible?The text was updated successfully, but these errors were encountered: