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: No TS error for missing actions on spawned machine #3405

Open
simonflk opened this issue Jun 14, 2022 · 0 comments
Open

Bug: No TS error for missing actions on spawned machine #3405

simonflk opened this issue Jun 14, 2022 · 0 comments

Comments

@simonflk
Copy link

simonflk commented Jun 14, 2022

Description

spawn(machine) is not aware of missing actions (and presumably guards, services, etc)

Expected result

I expect spawn(machine) to show the same TypeScript errors as interpret(machine)

Actual result

spawn(machine) does not raise any TS errors if there are missing actions

Reproduction

https://codesandbox.io/s/silly-leakey-9918xk?file=/src/index.ts

Additional context

No response

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

No branches or pull requests

3 participants