Skip to content

Add properties in JSDoc generation on destructuring in javascript file #27942

@Morikko

Description

@Morikko

Search Terms

JSDoc destructuring generate property javascript

Suggestion

When you use the JSDoc generation on function using destructuring, it could list the properties.

Use Cases

Avoid redundancy when writing code.
It could be useful for Javascript files and Typescript files.

Examples

Action:
capture d ecran 2018-10-17 a 15 21 44

Actual:
capture d ecran 2018-10-17 a 15 22 00

Expectation:
capture d ecran 2018-10-17 a 15 22 48

Checklist

My suggestion meets these guidelines:

  • This wouldn't be a breaking change in existing TypeScript / JavaScript code
  • This wouldn't change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn't a runtime feature (e.g. new expression-level syntax)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: JSDocRelates to JSDoc parsing and type generationDomain: LS: Quick FixesEditor-provided fixes, often called code actions.In DiscussionNot yet reached consensusSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions