From 28e8d921e5c7a56fb1398a33f3caaf37ddfbf746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nichlas=20Nielsen=20Wals=C3=B8e?= Date: Wed, 24 Jul 2024 10:49:02 +0200 Subject: [PATCH] Fix multi-line typedefs generating "let" statements Multi-line typedefs now generates valid type syntax --- cli/lib/tsd-jsdoc/publish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/lib/tsd-jsdoc/publish.js b/cli/lib/tsd-jsdoc/publish.js index f6dab9982..f29097e53 100644 --- a/cli/lib/tsd-jsdoc/publish.js +++ b/cli/lib/tsd-jsdoc/publish.js @@ -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("}"); }