Skip to content

JSDoc typed function comments inside functionsΒ #59967

@boycce

Description

@boycce

πŸ” Search Terms

"JSDoc inside functions", "JSDoc comments inside", "typed function comments"

βœ… Viability Checklist

⭐ Suggestion

Are we able add support for adding JSDoc typed function comments inside functions, either natively or by a setting?

πŸ“ƒ Motivating Example

Personally, I find it easier to read JSDoc typed function comments when they are indented nicely inside functions, similar to Python, which would also pair really well with code folding.

function arrayMove(index) {
  /**
   * @param {Number} index
   * @return {Array}
   */
  // ...
}

I enquired about this on Stackoverflow last year

πŸ’» Use Cases

.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting More FeedbackThis means we'd like to hear from more people who would be helped by this featureSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions