When spawning a child machine, I get a TS error.
entry: assign({ theChild: ({ spawn }) => spawn(child) }) // squigly error line under child
Expected result
There should not be a TS error
Actual result
The child machine is correctly spawned but I get this TS error: Argument of type 'StateMachine<MachineContext, AnyEventObject, Record<string, AnyActorRef>, ProvidedActor, ParameterizedObject, ... 7 more ..., ResolveTypegenMeta<...>>' is not assignable to parameter of type 'never'.(2345)
XState version
XState version 5
Description
When spawning a child machine, I get a TS error.
entry: assign({ theChild: ({ spawn }) => spawn(child) }) // squigly error line under child
Expected result
There should not be a TS error
Actual result
The child machine is correctly spawned but I get this TS error:
Argument of type 'StateMachine<MachineContext, AnyEventObject, Record<string, AnyActorRef>, ProvidedActor, ParameterizedObject, ... 7 more ..., ResolveTypegenMeta<...>>' is not assignable to parameter of type 'never'.(2345)
Reproduction
https://stackblitz.com/edit/github-eldaka?file=src%2FfeedbackMachine.ts
Additional context
No response