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

Fixed a regression in the inline actions type inference #2659

Merged
merged 2 commits into from
Sep 15, 2021

Conversation

Andarist
Copy link
Member

@changeset-bot
Copy link

changeset-bot bot commented Sep 15, 2021

🦋 Changeset detected

Latest commit: 08c80c8

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

TComputedAction = 'actions' extends keyof TModelCreators
? 'actions' extends keyof TFinalModelCreators
? UnionFromCreatorsReturnTypes<TFinalModelCreators['actions']>
: any
Copy link
Member Author

Choose a reason for hiding this comment

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

Using any should be almost forbidden in our types at the "output" positions. It has a domino effect on types and the inference - any unions containing that etc are becoming any themselves with that.

@davidkpiano davidkpiano merged commit b455b99 into main Sep 15, 2021
@davidkpiano davidkpiano deleted the andarist/fix-model-action-inference branch September 15, 2021 12:25
This was referenced Sep 15, 2021
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

3 participants