Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve exporting of 'actions' #2965

Merged

Conversation

satyasinha
Copy link
Contributor

Hello xstate team 馃憢

I asked a question some time ago if there are any functions that can retrieve the event names for done/error of services but the answer:
image

DIdn't seem to work. I realised later that some of exports from the actions.ts file aren't actually exported properly. Especially the ones we're after e.g. doneInvoke and error.

So this the change I'm making to improve how actions are exported. I don't think I've broken any exports but now everything that's exported from actions.ts is now exposed. Let me know if this not the right fix and I can change this to only export the ones we need and were assumed to be exported.

Cheers!
Satya

@changeset-bot
Copy link

changeset-bot bot commented Jan 26, 2022

馃 Changeset detected

Latest commit: 3230742

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

@ghost
Copy link

ghost commented Jan 26, 2022

CodeSee Review Map:

Review these changes using an interactive CodeSee Map

Review in an interactive map

View more CodeSee Maps

Legend

CodeSee Map Legend

@davidkpiano
Copy link
Member

Great contribution; thanks! Can you add a changeset? This would be a minor change, I believe (cc. @Andarist)

Co-authored-by: David Khourshid <davidkpiano@gmail.com>
@satyasinha
Copy link
Contributor Author

@davidkpiano @Andarist was there anything else for this PR? Otherwise bump for visibility and hopefully merge 馃

Also great work on the typegen, can't wait to integrate it to our own codebase!

@davidkpiano davidkpiano merged commit 43f4e91 into statelyai:main Jan 29, 2022
@github-actions github-actions bot mentioned this pull request Jan 29, 2022
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.

None yet

2 participants