Skip to content

JSDoc support for destructured parameters #11859

Description

@kitsonk

TypeScript Version: 2.0.3

Code

interfaceFoo{/** * A bar value */bar?: string;}/** * A function * * @param foo A param * @param { bar } Another param * @param bar Another param */functionfoo(foo: string,{ bar }: Foo): void{bar;foo;}foo('bar',{bar: 'play'});

Expected behavior:

Intellisense for the second argument, or the second argument properties.

Actual behavior:

No way of providing a description for the destructured elements of a destructured parameter.

destructured

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: JSDocRelates to JSDoc parsing and type generationHelp WantedYou can do thisIn DiscussionNot yet reached consensusSuggestionAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions