Files
tsgo/testdata/tests/cases/compiler/emitEndOfFileJSDocComments2.ts
2025-07-31 18:10:06 +00:00

24 lines
446 B
TypeScript

// @allowJs: true
// @checkJs: true
// @outDir: ./out
// @filename: emitEndOfFileJSDocComments2.js
/** @typedef {number} A */
/**
* JSDoc comment for function
* @param {string} param - A string parameter
* @returns {number} The length of the string
*/
function test(param) {
// Comment inside function
return param.length;
/** @typedef {number} B2 */
}
// Single line comment
/** @typedef {number} C */
/**
* Multiple line comment
*/