Skip to content

Commit

Permalink
fix: flow errors again
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Dec 22, 2017
1 parent dda250f commit ab1e2b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function defaultComposeReducers<S, A>(...reducers: Array<Reducer<S, A>>):
}
}

export function defaultCreateMiddleware<S, A: {type: $Subtype<String>}>(middlewares: {[actionType: string]: Middleware<S, A>}): Middleware<S, A> {
export function defaultCreateMiddleware<S, A: {type: $Subtype<string>}>(middlewares: {[actionType: string]: Middleware<S, A>}): Middleware<S, A> {
return (store: MiddlewareAPI<S, A>) => (next: Dispatch<A>) => (action: A) => {
const middleware = middlewares[action.type]
if (!middleware) return next(action)
Expand Down

0 comments on commit ab1e2b3

Please sign in to comment.