Bravo
Bravo3mo ago

passing down maps in a flow

Is passing down objects in typescript like Map<string,number> supported in flows? Because I can print it in my script but when I pass it downwards in a flow, it's complaining about undefined
6 Replies
rubenf
rubenf3mo ago
only if maps are serializable in json, otherwise transform them first as an object
Bravo
BravoOP3mo ago
good to know, thank you is there a list of supported/unsupported data structures somewhere in the docs perhaps? or just like anything you can serialize in json is supported and the rest isnt supported?
rubenf
rubenf3mo ago
latter is correct
Bravo
BravoOP3mo ago
oki
rubenf
rubenf3mo ago
for typescript we use JSON.stringify
Bravo
BravoOP3mo ago
yeah I had to use Object.fromEntries on top of that that did the trick, thanks mr ruben, you're really helpful :D

Did you find this page helpful?