diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2017-11-30 12:13:27 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2017-12-05 11:20:53 +0100 |
| commit | bf30196da401ca7275cb5d959f6a5fc761adfa5f (patch) | |
| tree | 959bc0b59e0b4c84e37242f4eb3f2e0bb7d3065d | |
| parent | 8c4afd6f29d134acbe05e95b36d2daf0f3239b9a (diff) | |
| download | mullvadvpn-bf30196da401ca7275cb5d959f6a5fc761adfa5f.tar.xz mullvadvpn-bf30196da401ca7275cb5d959f6a5fc761adfa5f.zip | |
Update flow annotations for redux
| -rw-r--r-- | flow-typed/npm/redux_v3.x.x.js | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/flow-typed/npm/redux_v3.x.x.js b/flow-typed/npm/redux_v3.x.x.js index f6445d9cf4..5bb5fb1a42 100644 --- a/flow-typed/npm/redux_v3.x.x.js +++ b/flow-typed/npm/redux_v3.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 86993bd000012d3e1ef10d757d16952d -// flow-typed version: a165222d28/redux_v3.x.x/flow_>=v0.33.x +// flow-typed signature: e0393883da9eb99c94c51c728b3f1d71 +// flow-typed version: 2c04631d20/redux_v3.x.x/flow_>=v0.33.x <=v0.54.x declare module 'redux' { @@ -11,15 +11,15 @@ declare module 'redux' { */ - declare type DispatchAPI<A> = (action: A) => A; - declare type Dispatch<A: { type: $Subtype<string> }> = DispatchAPI<A>; + declare export type DispatchAPI<A> = (action: A) => A; + declare export type Dispatch<A: { type: $Subtype<string> }> = DispatchAPI<A>; - declare type MiddlewareAPI<S, A, D = Dispatch<A>> = { + declare export type MiddlewareAPI<S, A, D = Dispatch<A>> = { dispatch: D; getState(): S; }; - declare type Store<S, A, D = Dispatch<A>> = { + declare export type Store<S, A, D = Dispatch<A>> = { // rewrite MiddlewareAPI members in order to get nicer error messages (intersections produce long messages) dispatch: D; getState(): S; @@ -27,58 +27,58 @@ declare module 'redux' { replaceReducer(nextReducer: Reducer<S, A>): void }; - declare type Reducer<S, A> = (state: S, action: A) => S; + declare export type Reducer<S, A> = (state: S, action: A) => S; - declare type CombinedReducer<S, A> = (state: $Shape<S> & {} | void, action: A) => S; + declare export type CombinedReducer<S, A> = (state: $Shape<S> & {} | void, action: A) => S; - declare type Middleware<S, A, D = Dispatch<A>> = + declare export type Middleware<S, A, D = Dispatch<A>> = (api: MiddlewareAPI<S, A, D>) => (next: D) => D; - declare type StoreCreator<S, A, D = Dispatch<A>> = { + declare export type StoreCreator<S, A, D = Dispatch<A>> = { (reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; (reducer: Reducer<S, A>, preloadedState: S, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; }; - declare type StoreEnhancer<S, A, D = Dispatch<A>> = (next: StoreCreator<S, A, D>) => StoreCreator<S, A, D>; + declare export type StoreEnhancer<S, A, D = Dispatch<A>> = (next: StoreCreator<S, A, D>) => StoreCreator<S, A, D>; - declare function createStore<S, A, D>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; - declare function createStore<S, A, D>(reducer: Reducer<S, A>, preloadedState: S, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; + declare export function createStore<S, A, D>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; + declare export function createStore<S, A, D>(reducer: Reducer<S, A>, preloadedState: S, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>; - declare function applyMiddleware<S, A, D>(...middlewares: Array<Middleware<S, A, D>>): StoreEnhancer<S, A, D>; + declare export function applyMiddleware<S, A, D>(...middlewares: Array<Middleware<S, A, D>>): StoreEnhancer<S, A, D>; - declare type ActionCreator<A, B> = (...args: Array<B>) => A; - declare type ActionCreators<K, A> = { [key: K]: ActionCreator<A, any> }; + declare export type ActionCreator<A, B> = (...args: Array<B>) => A; + declare export type ActionCreators<K, A> = { [key: K]: ActionCreator<A, any> }; - 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 export function bindActionCreators<A, C: ActionCreator<A, any>, D: DispatchAPI<A>>(actionCreator: C, dispatch: D): C; + declare export 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>; + declare export function combineReducers<O: Object, A>(reducers: O): CombinedReducer<$ObjMap<O, <S>(r: Reducer<S, any>) => S>, A>; - declare function compose<A, B>(ab: (a: A) => B): (a: A) => B - declare function compose<A, B, C>( + declare export function compose<A, B>(ab: (a: A) => B): (a: A) => B + declare export function compose<A, B, C>( bc: (b: B) => C, ab: (a: A) => B ): (a: A) => C - declare function compose<A, B, C, D>( + declare export function compose<A, B, C, D>( cd: (c: C) => D, bc: (b: B) => C, ab: (a: A) => B ): (a: A) => D - declare function compose<A, B, C, D, E>( + declare export function compose<A, B, C, D, E>( de: (d: D) => E, cd: (c: C) => D, bc: (b: B) => C, ab: (a: A) => B ): (a: A) => E - declare function compose<A, B, C, D, E, F>( + declare export function compose<A, B, C, D, E, F>( ef: (e: E) => F, de: (d: D) => E, cd: (c: C) => D, bc: (b: B) => C, ab: (a: A) => B ): (a: A) => F - declare function compose<A, B, C, D, E, F, G>( + declare export function compose<A, B, C, D, E, F, G>( fg: (f: F) => G, ef: (e: E) => F, de: (d: D) => E, @@ -86,7 +86,7 @@ declare module 'redux' { bc: (b: B) => C, ab: (a: A) => B ): (a: A) => G - declare function compose<A, B, C, D, E, F, G, H>( + declare export function compose<A, B, C, D, E, F, G, H>( gh: (g: G) => H, fg: (f: F) => G, ef: (e: E) => F, @@ -95,7 +95,7 @@ declare module 'redux' { bc: (b: B) => C, ab: (a: A) => B ): (a: A) => H - declare function compose<A, B, C, D, E, F, G, H, I>( + declare export function compose<A, B, C, D, E, F, G, H, I>( hi: (h: H) => I, gh: (g: G) => H, fg: (f: F) => G, |
