Bug: type error when referencing guard with `check` inside `setup`
Author: with-heartCreated Apr 7, 2024Updated Sep 12, 2025
Labelsbug
XState version
XState version 5
Description
The check function provided by enqueueActions can't be used to reference a guard by type or by parameterized object.
Expected result
I expected check to not cause a type error when referencing a guard.
Actual result
check causes a type error when referencing a guard.
Reproduction
Additional context
Maybe related to the cause of #4820 but opening for tracking
Source: statelyai/xstate