Skip to content

Commit

Permalink
Merge pull request #2010 from LavissaWoW/typedef-fix
Browse files Browse the repository at this point in the history
fix: multi-line typedefs generating "let" statements
  • Loading branch information
danielbankhead committed Aug 16, 2024
2 parents 59569c1 + 28e8d92 commit 7be19d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/lib/tsd-jsdoc/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function writeInterfaceBody(element) {
if (element.tsType)
writeln(element.tsType.replace(/\r?\n|\r/g, "\n"));
else if (element.properties && element.properties.length)
element.properties.forEach(writeProperty);
element.properties.forEach((property) => writeProperty(property));
--indent;
write("}");
}
Expand Down

0 comments on commit 7be19d3

Please sign in to comment.