Attach Documentation to Labeled Tuple Elements #49998
Labels
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
Suggestion
I often find myself describing function params as labeled tuples. A simple example:
Unfortunately, this approach prevents us from attaching tsdocs to the params. The following does not work :/
I propose that one be able to attach tsdocs to labeled tuple elements, just as one does to object keys.
I also propose that––when spread in place of function params––these tsdocs are treated as if they were the result of
@param
annotations on the function declaration.🔍 Search Terms
Documentation, labeled, tuple, elements, tsdocs, signature
✅ Viability Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: