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
fromMachine is used to convert a state machine to a behavior so it can be used with higher-order-behavior defined by this library.
However, it is currently not possible to pass a machine that is created with createMachine or model.createMachine to fromMachine. TypeScript produces some type errors that I don't fully understand yet.
fromMachine
is used to convert a state machine to a behavior so it can be used with higher-order-behavior defined by this library.However, it is currently not possible to pass a machine that is created with
createMachine
ormodel.createMachine
tofromMachine
. TypeScript produces some type errors that I don't fully understand yet.Relevant source: https://github.com/christoph-fricke/xsystem/blob/main/src/utils/from_machine.ts
Test that should not produce errors if TS comment is removed: https://github.com/christoph-fricke/xsystem/blob/main/src/utils/from_machine.test.ts
The text was updated successfully, but these errors were encountered: