Return type of payload
Mischback opened this issue · comments
Currently the payload must be Promise-based. Can this be made more generic?
Especially: It is required to return some type of object
, as the payload
result is merged using Object.assign()
. What if the payload
is of type void
or Promise<void>
?
How can the generic expected return type safely be initialized?