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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Type Error with Actions outside of Setup() #4846

Open
mbushpilot2b opened this issue Apr 11, 2024 · 0 comments
Open

Bug: Type Error with Actions outside of Setup() #4846

mbushpilot2b opened this issue Apr 11, 2024 · 0 comments
Assignees
Labels

Comments

@mbushpilot2b
Copy link

XState version

XState version 5

Description

Defining actions outside of the setup() results in a type error.

Expected result

Actions defined outside the setup should not throw typescript error.

Actual result

Typescript error as seen here:
Screenshot 2024-04-10 at 11 25 31 PM

Reproduction

https://stackblitz.com/edit/node-c2qnkr?file=index.ts

Additional context

See discord conversation here for context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants