How to create mendix object and pass it to nanoflow from typescript

I am creating a custom native widget. I want to pass one non persistable  entity object to nanoflow from typescript. How can I do that? Any project which I can refer too. 
1 answers

This is the same for native as for non-native, so this is the first that comes to mind: and its code

As for a code sample, download and check out my trial page at

Hope it helps!