Skip to content

JSDoc generation - generate @returns when function returns a value #14248

@mjbvz

Description

@mjbvz

From @egamma on February 22, 2017 11:14

In the following generated JS Doc comment I would have expected that there is also a @returns comment.

/**
 * 
 * @param {any} a
 * @param {any} b
 */
function foo(a, b) {
  return 12;
}

Copied from original issue: microsoft/vscode#21109

Metadata

Metadata

Assignees

Labels

CommittedThe team has roadmapped this issueDomain: JSDocRelates to JSDoc parsing and type generationFix AvailableA PR has been opened for this issueSuggestionAn idea for TypeScriptVS Code PriorityCritical issues that VS Code needs fixed in the current TypeScript milestoneVS 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