I have the following code:
client.reverse(msg.payload).then((/** @type {any} */ output) => {
msg.payload = output;
node.send(msg);
node.done();
}).catch((/** @type {{ name: any; message: any; }} */ err) => {
// An error has been returned by the Promise.
// Do something with it...
msg.payload = {
name: err.name,
message: err.message
};
node.send(msg);
node.done();
});
If the comment is not added you get the following error or warning with the monaco editor:
With the quick fix a comment is added, but why does this fix the error. Sorry I am a noob in JS.

