TSConfig

removeComments

Strips all comments from TypeScript files when converting into JavaScript. Defaults to false.

For example, this is a TypeScript file which has a JSDoc comment:

ts
/** The translation of 'Hello world' into Portuguese */
export const helloWorldPTBR = "Olá Mundo";

When removeComments is set to true:

ts
export const helloWorldPTBR = "Olá Mundo";
 
Try

Without setting removeComments or having it as false:

ts
/** The translation of 'Hello world' into Portuguese */
export const helloWorldPTBR = "Olá Mundo";
 
Try

This means that your comments will show up in the JavaScript code.