Restrict invoked Subscribable to EventObjects #2106
Unanswered
woutermont
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, when invoking a
Subscribable
, the type is inferred to beSubscribable<any>
, because this is hardcoded in the type definition ofInvokeCreator
. This makes any type inference/checking on its emissions impossible, even though the documentation states it is "expected to send events (strings or objects) to the parent machine".Would there be any disadvantage to typing such an
InvokeCreator
asSubscribable<EventObject>
?Beta Was this translation helpful? Give feedback.
All reactions