Avatar ·

Where to find documentation on TypeScript comment syntax?

Hi everyone! I just started learning TypeScript, coming from JavaScript. In JavaScript, I was used to using comments to explain my code, but in TypeScript I'm running into confusion. I know there are `//` for single-line and `/* */` for multi-line comments, but I've heard that TypeScript has some "special" comments used for types, documentation, or something similar. For example, I've seen something like `/** @param {string} name */` before a function in someone else's code. Is this even valid TypeScript? Or is it just JSDoc? I tried googling "TypeScript comments syntax" but only find general articles about JavaScript comments. Where exactly in the official TypeScript documentation are all types of comments described? Maybe there's a page with the syntax? Here's wh