mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
446 B
TypeScript
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
|
|
*/
|