Version: XState v4
TypeScript in XState
Learn about TypeScript in XState.
You can automatically generate intelligent typings for XState using our VS Code extension or our CLI.
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.
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.