You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating xstate to the latest version we started having problems with with machine typing. We are using Actor<AnyStateMachine> but it seems to no longer work with Actor<typeof machine>
XState version
XState version 5
Description
After updating xstate to the latest version we started having problems with with machine typing. We are using
Actor<AnyStateMachine>
but it seems to no longer work withActor<typeof machine>
Here is the example code:
Actor<AnyStateMachine>
should be assignable toActor<typeof machine>
but there seems to be the following error:This is not how we use it in our codebase but it was the easies way to reproduce the same error.
Expected result
Actor<AnyStateMachine>
should be assignable toActor<typeof machine>
?Actual result
Type error:
Reproduction
https://stackblitz.com/edit/vitejs-vite-mrgs8ubw?file=src%2Fmain.ts
Additional context
No response
The text was updated successfully, but these errors were encountered: