We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a57776 commit d75b4d5Copy full SHA for d75b4d5
rostsd_gen/index.js
@@ -306,9 +306,9 @@ function saveMsgConstructorAsTSD(rosMsgInterface, fd) {
306
fs.writeSync(fd, ` export interface ${msgName}Constants {\n`);
307
for (const constant of rosMsgInterface.ROSMessageDef.constants) {
308
if(primitiveType2JSName(constant.type) === "string"){
309
- fs.writeSync(fd, ` ${constant.name} = "${constant.value}";\n`);
+ fs.writeSync(fd, ` ${constant.name} = "${constant.value}",\n`);
310
} else {
311
- fs.writeSync(fd, ` ${constant.name} = ${constant.value};\n`);
+ fs.writeSync(fd, ` ${constant.name} = ${constant.value},\n`);
312
}
313
314
fs.writeSync(fd, ' }\n');
0 commit comments