Callbacks should be a DU like this:
type Callback
| SingleCallback ...
| MultiCallback ...
this will make serialization harder but making multiple outputs possible is important.
- the 'Output' property of the callback (which is basically its id) needs to be constructed from the multi output objects
- this id should then automatically be used to register the callback, abstracting the argument away from the registerCallback function.
Callbacks should be a DU like this:
type Callback
| SingleCallback ...
| MultiCallback ...
this will make serialization harder but making multiple outputs possible is important.