Trying node-red-conrib-ts
@benoitadam what does it take to make this error disappear in node-red-contrib-ts.
let msg1 = {}
let invar = msg.payload
msg1.payload = invar
return msg1
I use that a lot in function nodes.
[{"id":"02b27754f6032fe8","type":"typescript","z":"7addd5819f6fd8a6","name":"typescript 1","func":"let msg1 = {}\nlet invar = msg.payload\n\nmsg1.payload = invar\nreturn msg1\n","outputs":1,"timeout":0,"useVm":false,"updated":"1757014932549","declare":"","noerr":1,"initialize":"","finalize":"","libs": [],"x":530,"y":180,"wires":[["277a0382feeee259"]]},{"id":"95d2eae65ce966d2","type":"inject","z":"7addd5819f6fd8a6","name":"","props": [{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType ":"date","x":180,"y":180,"wires":[["02b27754f6032fe8"]]},{"id":"277a0382feeee259","type":"debug","z":"7addd5819f6fd8a6","name":"debug 75","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":180,"wires":[]},{"id":"cb6b5379cc95ab76","type":"function","z":"7addd5819f6fd8a6","name":"function 25","func":"let msg1 = {}\nlet invar msg.payload\n\nmsg1.payload = invar\nreturn msg1\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":530,"y":300,"wires":[["9c77eb4e33 14e145"]]},{"id":"16aa73374cef7423","type":"inject","z":"7addd5819f6fd8a6","name":"","props":[{"p":"payload"},{"p":"topi c","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x": 180,"y":300,"wires":[["cb6b5379cc95ab76"]]},{"id":"9c77eb4e3314e145","type":"debug","z":"7addd5819f6fd8a6","name":"debug 76","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":760,"y":300,"wires":[]},{"id":"23a4d61f6d27b6a7","type":"global-config","env":[],"modules":{"node-red-contrib-ts":"1.2.3"}}]