Open andrecrimb opened 5 months ago
Which TypeScript version are you using?
Regardless this may be a TS limitation (cc. @Andarist)
Sorry, I forgot to add it into the description.
"typescript": "5.3.3"
Bumped into the same issue: https://stackblitz.com/edit/vitejs-vite-rggwb5?file=src%2Fmain.ts
Seems like the TActions
generic is resolving to never
on enqueue
declaration
xstate: "5.18.1" typescript: "5.5.4"
XState version
XState version 5
Description
TS throws an error when
enqueuedActions
is declared withinsetups > actions
.Expected result
No type error should be raised.
Actual result
Reproduction
Sandbox link
Additional context
xstate: 5.13.0 typescript: "5.3.3