Version: XState v4
TypeScript in XState
Learn about TypeScript in XState.
Typegen
You can automatically generate intelligent typings for XState using our VS Code extension or our CLI.
Type helpers
XState makes several type helpers available to you for composing types in TypeScript. You can use these helpers for creating custom functions or typing various integrations.
Troubleshooting
There are some known limitations with XState and TypeScript. We love TypeScript, and we’re constantly pressing ahead to make it a better experience in XState.