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
4.0.1 typescript error TS2322 on subscriptions #65
Comments
Thanks for submitting this issue to alert others that it's being worked on. 👍 |
@erikras - notice that an indexer is added to both the flow and ts types for |
Not sure what you mean by |
Yes exactly, that means it allows any field (key) with a boolean value, which I think is incorrect. |
Aaahh.. It should only be known keys. So really the whole |
It is now, I'll adjust flow like ts. Subscription will be common fields. |
But why not just have |
|
@erikras I bailed out on the flow type changes. It started down a rabbit hole that I'm not quite prepared to follow. I fixed the ts types so we need to mirror them to flow and deal with the subsequent fallout in a different issue/PR. |
I'm okay with that. 👍 |
Published fix in |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Are you submitting a bug report or a feature request?
Bug
What is the current behavior?
I introduced changes in #61 that produce typescript errors.
What is the expected behavior?
One example:
What's your environment?
final-form ^4.0.1
react-final-form ^3.0.2
Other information
I created the problem, I'll PR the fix ASAP. Working on it now. I will probably PR tests to
react-final-form
as well.The text was updated successfully, but these errors were encountered: