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

Flow types declared for non-existing redux-form.actions #3224

Closed
ktosiek opened this issue Jul 21, 2017 · 3 comments
Closed

Flow types declared for non-existing redux-form.actions #3224

ktosiek opened this issue Jul 21, 2017 · 3 comments

Comments

@ktosiek
Copy link

ktosiek commented Jul 21, 2017

What is the current behavior?

Actions are exported as redux-form.${action}, but flow declarations say it's redux-form.actions.${action}. For example this should work, but flow check fails:

// @flow
import * as ReduxForm from 'redux-form'

ReduxForm.initialize('some-form', {}, {})

Flow error:

react/t.js:4
  4: ReduxForm.initialize('some-form', {}, {})
               ^^^^^^^^^^ property `initialize`. Property not found in
  4: ReduxForm.initialize('some-form', {}, {})
     ^^^^^^^^^ exports of "redux-form"

What is the expected behavior?

Flow declarations should match code.

What's your environment?

redux-form 7.0.1

Other information

@Pegase745
Copy link

Mentionned here #3214

@erikras
Copy link
Member

erikras commented Jul 24, 2017

Published fix in v7.0.2.

@lock
Copy link

lock bot commented Jul 24, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants