mattpocock / xstate-codegen

A codegen tool for 100% TS type-safety in XState
MIT License
245 stars 12 forks source link

Fix issue with space in action/guard/etc. name #85

Closed johnnydecimal closed 10 months ago

johnnydecimal commented 3 years ago

Fixes an issue whereby a space in the key name for an action, activity, guard, or service causes a failure. We do this by wrapping the name of those items in "quotes" in the output. This is achieved by editing the template file.

changeset-bot[bot] commented 3 years ago

🦋 Changeset detected

Latest commit: 7bb7dd386c9145e23ad3efc9397193ffdabf2bdd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------- | ----- | | xstate-codegen | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR