Skip to content

Commit

Permalink
fix(docgen): typescript: add new line after removed members
Browse files Browse the repository at this point in the history
  • Loading branch information
drauggres committed Jan 9, 2020
1 parent 0015133 commit fa8ee78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/titanium-docgen/generators/typescript_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ class GlobalTemplateWriter {
this.output += this.generateJsDoc(functionNode, nestingLevel);
const inGlobal = nestingLevel === 0 ? 'declare ' : '';
if (functionNode.removed) {
this.output += `${this.indent(nestingLevel)}${inGlobal}const ${functionNode.name}: never;\n`;
this.output += `${this.indent(nestingLevel)}${inGlobal}const ${functionNode.name}: never;\n\n`;
return;
}
const parametersString = this.prepareParameters(functionNode.parameters);
Expand All @@ -532,7 +532,7 @@ class GlobalTemplateWriter {
this.output += this.generateJsDoc(functionNode, nestingLevel);
const isStatic = functionNode.isStatic ? 'static ' : '';
if (functionNode.removed) {
this.output += `${this.indent(nestingLevel)}${isStatic}${functionNode.name}: never;\n`;
this.output += `${this.indent(nestingLevel)}${isStatic}${functionNode.name}: never;\n\n`;
return;
}
const parametersString = this.prepareParameters(functionNode.parameters);
Expand Down

0 comments on commit fa8ee78

Please sign in to comment.