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

Fix error for enforceActions option in flow #1516

Closed
wants to merge 1 commit into from
Closed

Fix error for enforceActions option in flow #1516

wants to merge 1 commit into from

Conversation

danrot
Copy link

@danrot danrot commented Apr 23, 2018

Since recently we have a flow error in our project, which seems to be an error in flow itself, I already created an issue there: facebook/flow#6186

However, this error only applies if an interface is used for the enforceActions attribute. Somehow flow misinterprets a union as an intersection within an interface, but not within an object.

When looking at that I was wondering why it is an interface instead of a simple type definition. I propose this change here, and as a side effect flow would continue working for us :-)

@coveralls
Copy link

Coverage Status

Coverage remained the same at 92.969% when pulling 91c2e53 on danrot:patch-1 into dbe4c93 on mobxjs:master.

@mweststrate
Copy link
Member

Dôh, two PRs with the same fix! Just merged #1521. Thanks though!

@danrot danrot deleted the patch-1 branch April 26, 2018 08:19
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.

3 participants