Skip to content

Commit 7be19d3

Browse files
Merge pull request #2010 from LavissaWoW/typedef-fix
fix: multi-line typedefs generating "let" statements
2 parents 59569c1 + 28e8d92 commit 7be19d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/lib/tsd-jsdoc/publish.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ function writeInterfaceBody(element) {
392392
if (element.tsType)
393393
writeln(element.tsType.replace(/\r?\n|\r/g, "\n"));
394394
else if (element.properties && element.properties.length)
395-
element.properties.forEach(writeProperty);
395+
element.properties.forEach((property) => writeProperty(property));
396396
--indent;
397397
write("}");
398398
}

0 commit comments

Comments
 (0)