From d75b4d50f15ff2766b4545b456843e01054cd79c Mon Sep 17 00:00:00 2001 From: Dimitri Nikitopoulos Date: Mon, 14 Oct 2024 11:11:44 -0400 Subject: [PATCH] fix: typo --- rostsd_gen/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rostsd_gen/index.js b/rostsd_gen/index.js index 6533f7cc..1fc64cbf 100644 --- a/rostsd_gen/index.js +++ b/rostsd_gen/index.js @@ -306,9 +306,9 @@ function saveMsgConstructorAsTSD(rosMsgInterface, fd) { fs.writeSync(fd, ` export interface ${msgName}Constants {\n`); for (const constant of rosMsgInterface.ROSMessageDef.constants) { if(primitiveType2JSName(constant.type) === "string"){ - fs.writeSync(fd, ` ${constant.name} = "${constant.value}";\n`); + fs.writeSync(fd, ` ${constant.name} = "${constant.value}",\n`); } else { - fs.writeSync(fd, ` ${constant.name} = ${constant.value};\n`); + fs.writeSync(fd, ` ${constant.name} = ${constant.value},\n`); } } fs.writeSync(fd, ' }\n');