Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@xstate.fsm
: State value added to transition type (#4043)
* feat: state value added to transition type * fix: types changed * change `state.matches` signature in `@xstate/fsm` to mimick the one in `xstate` * add runtime context to what was intended to be type-only test * add default to the new type param in `Transition` * Update .changeset/modern-spies-cry.md --------- Co-authored-by: Сергей Краснов <krasnov.s@releaseband.com> Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
- Loading branch information
1 parent
4909dab
commit bc1799b
Showing
4 changed files
with
84 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@xstate/fsm': patch | ||
--- | ||
|
||
Pass around `TState['value']` type to `Transition` and `.initial` property of the machine configuration. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters