xstate icon indicating copy to clipboard operation
xstate copied to clipboard

Bug: ToProvidedActor issue

Open SilentEchoGM opened this issue 2 years ago • 1 comments

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

SilentEchoGM avatar Jan 15 '24 12:01 SilentEchoGM

Likely related to: https://github.com/statelyai/xstate/issues/4613

Andarist avatar Jan 15 '24 13:01 Andarist