We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 keep picking the wrong branch in a union type of two functions(Dispatch).
Dispatch
Type the function will help me to describe my async acitons like const setDate: RawAction<[string], string>.
const setDate: RawAction<[string], string>
type InjectStore<A, B> = RawAction<A, B> => Action<A, B> export type Dispatch = DispatchAPI<PlainAction> | InjectStore<*, *> const app: ? = store => next => action => typeof action === 'function' ? action(store) : next(action)
see: facebook/flow#1948 for more information about union type and functions.
The text was updated successfully, but these errors were encountered:
WIP: Fix types
16ace5b
Flow keeps picking the wrong branch. See #2.
No branches or pull requests
Flow keep picking the wrong branch in a union type of two functions(
Dispatch
).Type the function will help me to describe my async acitons like
const setDate: RawAction<[string], string>
.see: facebook/flow#1948 for more information about union type and functions.
The text was updated successfully, but these errors were encountered: