UNPKG

swagger-typescript-api-nextgen

Version:
11 lines (10 loc) 288 B
/** * Format a line in JSDOC line by adding ' *' at the beginning and \n character at the end * * @example 'abc' -> ' * abc\n' * @param line * @return {string} */ module.exports = function fmtToJSDocLine(line, { eol = true }) { return ` * ${line}${eol ? "\n" : ""}`; };