chore(doc-gen): add TypeScript parsing
This commit is contained in:
parent
c6dc78183d
commit
7bff919782
|
@ -35,4 +35,4 @@ export class MyClass {
|
|||
/**
|
||||
* An exported function
|
||||
*/
|
||||
export var myFn = (val:number) => { return val*2; }
|
||||
export var myFn = (val:number) => return val*2;
|
|
@ -34,7 +34,7 @@ module.exports = function getContent() {
|
|||
content += sourceFile.text
|
||||
.substring(commentRange.pos+ '/**'.length, commentRange.end - '*/'.length)
|
||||
.replace(LEADING_STAR, '')
|
||||
.trim()
|
||||
.trim();
|
||||
if (commentRange.hasTrailingNewLine) {
|
||||
content += '\n';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue