Skip to content

Commit

Permalink
Fix multi-line typedefs generating "let" statements
Browse files Browse the repository at this point in the history
Multi-line typedefs now generates valid type syntax
  • Loading branch information
Nichlas Nielsen Walsøe committed Jul 24, 2024
1 parent 0a0cdb6 commit 28e8d92
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 28e8d92

Please sign in to comment.