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
|
* 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
|
content += sourceFile.text
|
||||||
.substring(commentRange.pos+ '/**'.length, commentRange.end - '*/'.length)
|
.substring(commentRange.pos+ '/**'.length, commentRange.end - '*/'.length)
|
||||||
.replace(LEADING_STAR, '')
|
.replace(LEADING_STAR, '')
|
||||||
.trim()
|
.trim();
|
||||||
if (commentRange.hasTrailingNewLine) {
|
if (commentRange.hasTrailingNewLine) {
|
||||||
content += '\n';
|
content += '\n';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user