The TSDoc block comment to unwrap.
The unwrapped TSDoc comment.
This function will throw an error if the provided string is not a valid TSDoc block comment.
Will throw an error if the provided code is not a valid TSDoc comment.
const actual = tsDocUnwrapComment([
'/**',
' * Checks if the provided (...)',
' * @remarks This function (...)',
' * @param code The source (...)',
' * @returns A boolean ind (...)',
' */',
].join('\n'))
const expected = [
'Checks if the provided (...)',
'@remarks This function (...)',
'@param code The source (...)',
'@returns A boolean ind (...)',
].join('\n')
actual === expected
//=> true
Generated using TypeDoc
Unwraps a TSDoc block comment, removing the comment markers and leading asterisks. Throws an error if the provided string is not a valid TSDoc block comment.