diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2017-08-07 10:29:00 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2017-08-07 10:29:00 +0100 |
| commit | 0fd8de3cdfdf8957ad3362643fcd8e8ef9888794 (patch) | |
| tree | ae44d61df491c62b11f811b885eac2634e2c775f | |
| parent | 8beadc08212d8de71228a6cba727af254a78c004 (diff) | |
| parent | dcc551b3ed773d430739711176f30e7fa6fd9b73 (diff) | |
| download | mullvadvpn-0fd8de3cdfdf8957ad3362643fcd8e8ef9888794.tar.xz mullvadvpn-0fd8de3cdfdf8957ad3362643fcd8e8ef9888794.zip | |
Merge branch 'flow-typed-dispatch-master'
| -rw-r--r-- | flow-typed/npm/redux_v3.x.x.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/flow-typed/npm/redux_v3.x.x.js b/flow-typed/npm/redux_v3.x.x.js index 4f93322f7d..f6445d9cf4 100644 --- a/flow-typed/npm/redux_v3.x.x.js +++ b/flow-typed/npm/redux_v3.x.x.js @@ -1,6 +1,5 @@ -// This is a custom implementation of redux flow annotations. -// Please do not overwrite without consideration. -// PR: https://github.com/flowtype/flow-typed/pull/1071 +// flow-typed signature: 86993bd000012d3e1ef10d757d16952d +// flow-typed version: a165222d28/redux_v3.x.x/flow_>=v0.33.x declare module 'redux' { @@ -12,7 +11,8 @@ declare module 'redux' { */ - declare type Dispatch<A: { type: $Subtype<string> }> = (action: A) => A; + declare type DispatchAPI<A> = (action: A) => A; + declare type Dispatch<A: { type: $Subtype<string> }> = DispatchAPI<A>; declare type MiddlewareAPI<S, A, D = Dispatch<A>> = { dispatch: D; @@ -50,8 +50,8 @@ declare module 'redux' { declare type ActionCreator<A, B> = (...args: Array<B>) => A; declare type ActionCreators<K, A> = { [key: K]: ActionCreator<A, any> }; - declare function bindActionCreators<A, C: ActionCreator<A, any>, D>(actionCreator: C, dispatch: D): C; - declare function bindActionCreators<A, K, C: ActionCreators<K, A>, D>(actionCreators: C, dispatch: D): C; + declare function bindActionCreators<A, C: ActionCreator<A, any>, D: DispatchAPI<A>>(actionCreator: C, dispatch: D): C; + declare function bindActionCreators<A, K, C: ActionCreators<K, A>, D: DispatchAPI<A>>(actionCreators: C, dispatch: D): C; declare function combineReducers<O: Object, A>(reducers: O): CombinedReducer<$ObjMap<O, <S>(r: Reducer<S, any>) => S>, A>; |
