Skip to content

Commit 28e8d92

Browse files
author
Nichlas Nielsen Walsøe
committed
Fix multi-line typedefs generating "let" statements
Multi-line typedefs now generates valid type syntax
1 parent 0a0cdb6 commit 28e8d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/lib/tsd-jsdoc/publish.js

Lines changed: 1 addition & 1 deletion
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)