Skip to content

Types for data: (context, event) => are 'any' #1261

Answered by Andarist
lukehorvat asked this question in General
Discussion options

You must be logged in to vote

Thank you for the report - I've started working on fixing this. The problem is that currently any is included in some union types and this always makes the whole union equal to any.

Side note: is it possible to define data the serialized way?

You could use services to do that though - you would just have to return ChildMachine.withContext(/* ... */) from a service creator based on received arguments (context and event).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lukehorvat
Comment options

Answer selected by davidkpiano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants