Skip to content

Andarist/xstate-codegen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xstate-codegen

A Typescript codegen CLI for XState.

Birthed from a twitter rant. Read this to get an idea of what you're getting yourself in for.

This repository is EXPERIMENTAL. I'm yet even to do readme-driven development. Changes are subject to break things.

Usage

yarn global add xstate-codegen

xstate-codegen "src/**/**.machine.ts"

Watches any file with a machine.ts extension and adds typings for it.

Currently only works with React, but we plan to support other frameworks soon.

Enjoy!

About

A codegen tool for 100% TS type-safety in XState

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 57.1%
  • HTML 33.0%
  • JavaScript 9.9%