@checkout-kit/core / nextPhase
Variable: nextPhase
ts
const nextPhase: (phase, event) => CheckoutPhase | null;The phase this event leads to, or null if the machine forbids it here.
Parameters
| Parameter | Type |
|---|---|
phase | CheckoutPhase |
event | MachineEvent |
Returns
CheckoutPhase | null