Skip to content

Conversation

@mingfang
Copy link

@mingfang mingfang commented Oct 5, 2025

fix #33

@igalshilman
Copy link
Contributor

Hello @mingfang, the change looks good to me, if you can, please run pnpm run format, then let's wait for the tests to run.

@igalshilman igalshilman self-requested a review October 6, 2025 10:30
export type RunningMachine<SnapshotType> = {
send: (event: AnyEventObject) => Promise<SnapshotType>;
snapshot(): Promise<SnapshotType>;
nextEvents(): Promise<SnapshotType>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the return type be Promise<string[]> ?

LatestStateMachine | PreviousStateMachine
>(ctx, api, systemName, version, logic);

const snapshot = root.getSnapshot();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be root.getPersistedSnapshot() ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add ability to get next events

2 participants