doc comment

A comment starting with /** placed above a declaration, which editors show as documentation when you hover over it.

In more detail

TypeScript reads these JSDoc comments and displays them in tooltips and auto-complete. In plain JavaScript files, JSDoc tags such as @param can even carry types.

Related terms

Taught in

References