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] Export `CallbackLogicFunction` (prev. `InvokeCallback`) #5054

Closed davidkpiano closed 2 months ago

davidkpiano commented 2 months ago

The CallbackLogicFunction type (previously InvokeCallback) is now exported. This is the callback function that you pass into fromCallback(callbackActorFn) to create an actor from a callback function.

import { type CallbackLogicFunction } from 'xstate';

// ...
changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: f1ece90d2b2dd2cc8f3863ce7b8823e1e26c8c37

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

This PR includes changesets to release 1 package | Name | Type | | ------ | ----- | | xstate | 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