Closed wcastand closed 4 months ago
XState version 5
the transition event is broken when i pass a type to create.
because i try to access event: { newContext } but types expect update to possibly also be {type: update} which breaks the types.
event: { newContext }
update
{type: update}
Couldn't find an example in your repo on typing stores so maybe i'm doing it wrong.
type to not show an error
showing a type error when passing the update fn
https://replit.com/join/ifbbvxzfvf-wcastand
No response
Can you try with the latest version?
looks fixed, thanks :)
XState version
XState version 5
Description
the transition event is broken when i pass a type to create.
because i try to access
event: { newContext }
but types expectupdate
to possibly also be{type: update}
which breaks the types.Couldn't find an example in your repo on typing stores so maybe i'm doing it wrong.
Expected result
type to not show an error
Actual result
showing a type error when passing the
update
fnReproduction
https://replit.com/join/ifbbvxzfvf-wcastand
Additional context
No response