Open SilentEchoGM opened 8 months ago
XState version 5
Re: https://discord.com/channels/795785288994652170/1195282577314021377/1196437701537300531
I expected to move the object I use as the second parameter to createMachine into setup without getting type errors.
I got type errors.
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgQwM6uAcwHYBo6oCmMArmPgMZSHIyECyyFAFsNoXAL5wBmUEIOACIAHqhi1CQgFDTCIyLDgUI2cQUIAbQhRgAVZFEzFUcALwp0WbAAobSQgDdC2eJwCU5gHyJpcOMA8cDYAhDZCYIbIIKhCAdhwTi7wAGQpwhJGJnFsic6uAHSRUNGo7p4Ifv5wMMz8AO5w7I0AolD8UDZV1XAABgDq-NiYeck1AJ5gHJHohAAmNRAoc3MGWTCoehAAylo6MMCqAFxwACSVPT1Jrt3VnL237gDcVZxV1KRQCRfVRNq6h2wR2uMCKURiBUyxg2uFeLw8L2kKjU8BATFY7HMGlIYC6SBQANUqBOP38f32a2hqFeb3csmR6jRLDYhAATFiqDQ6Ixmewuv5SfFgAdkJoTkJgHNtEJYT1xJJib5LgEpYQSbJlW8elquPgqvimAcieq5XtdJSTDTpO4gA
No response
Likely related to: https://github.com/statelyai/xstate/issues/4613
XState version
XState version 5
Description
Re: https://discord.com/channels/795785288994652170/1195282577314021377/1196437701537300531
Expected result
I expected to move the object I use as the second parameter to createMachine into setup without getting type errors.
Actual result
I got type errors.
Reproduction
https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgQwM6uAcwHYBo6oCmMArmPgMZSHIyECyyFAFsNoXAL5wBmUEIOACIAHqhi1CQgFDTCIyLDgUI2cQUIAbQhRgAVZFEzFUcALwp0WbAAobSQgDdC2eJwCU5gHyJpcOMA8cDYAhDZCYIbIIKhCAdhwTi7wAGQpwhJGJnFsic6uAHSRUNGo7p4Ifv5wMMz8AO5w7I0AolD8UDZV1XAABgDq-NiYeck1AJ5gHJHohAAmNRAoc3MGWTCoehAAylo6MMCqAFxwACSVPT1Jrt3VnL237gDcVZxV1KRQCRfVRNq6h2wR2uMCKURiBUyxg2uFeLw8L2kKjU8BATFY7HMGlIYC6SBQANUqBOP38f32a2hqFeb3csmR6jRLDYhAATFiqDQ6Ixmewuv5SfFgAdkJoTkJgHNtEJYT1xJJib5LgEpYQSbJlW8elquPgqvimAcieq5XtdJSTDTpO4gA
Additional context
No response