statelyai / xstate

Actor-based state management & orchestration for complex app logic.
https://stately.ai/docs
MIT License
27.21k stars 1.26k forks source link

[core] Expose actor snapshot `status` type as SnapshotStatus #4996

Closed ronvoluted closed 3 months ago

ronvoluted commented 4 months ago

This PR exports a new SnapshotStatus type which represents the status type of an actor snapshot— 'active' | 'done' | 'error' | 'stopped'.

Hardcoded uses of this string union were also replaced with the type.

Discussion

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: ebd66046ea2c6658a894bb2868f0f80755ebd223

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

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

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