-
In my system events, actions, guards etc are provided by the framework and are the same for every machine. Is there an easy way to automatically provide these types for the machine configs? Something like (pseudoish code):
... or is this the wrong way of thinking about this? Is there a way to provide these types on a system level? I don't even know how that would work tho... Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
It ain't pretty and we are not married to the exact shape/list of our current type parameters but it's possible today: TS playground |
Beta Was this translation helpful? Give feedback.
You can fix this by pushing
TEvent
in your customcreateMyMachine
to the end and by setting its default tonever
: TS playground