Skip to content

Commit

Permalink
add changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Feb 13, 2023
1 parent a543254 commit a758eee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/shy-donkeys-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'xstate': minor
---

All actions received a new generic: `TExpressionEvent`. To type things more correctly and allow TS to infer things better we need to distinguish between all events accepted by a machine (`TEvent`) and the event type that actions are "called" with (`TExpressionEvent`).

It's best to rely on type inference so you shouldn't have to specify this generic manually all over the place.

0 comments on commit a758eee

Please sign in to comment.