Replies: 2 comments 1 reply
-
Can you put that in a CodeSandbox? Would make it easier to work with. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I did write a few blog posts last year. Most of the examples and also the content inside the blog is focused on using XState with TypeScript https://dev.to/codingdive/state-machine-advent-the-simplest-state-machine-that-will-improve-your-code-today-1-24-5bfi |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there. Brand new to xstate, trying to learn by starting off with a simple Game of Life implementation.
I'd like to use enum members for my state keys, but as soon as I do so, I get the following Typescript error:
Type '{ TICK: { target: Condition; cond: ({ neighbors }: { neighbors: number; }) => boolean; }; }' is not assignable to type 'undefined'.
This seems like it should be possible?Here's my cell machine:
Side question: does anyone know of any good examples/resources for learning to use xState with Typescript? Most of the docs and examples I've found are JS-focused, even on xstate.js.org…
Beta Was this translation helpful? Give feedback.
All reactions