diff options
author | Joffrey Bion <joffrey.bion@amadeus.com> | 2017-07-19 15:34:40 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@amadeus.com> | 2017-07-19 15:34:40 +0200 |
commit | dd4e15f71eaf29c743ac2bbcb2ae3c985e737ad9 (patch) | |
tree | e5b0c82a04bb4dbcadcea3cfa3b8718849bd001d /frontend | |
parent | Fix handler for empty websocket messages (diff) | |
download | seven-wonders-dd4e15f71eaf29c743ac2bbcb2ae3c985e737ad9.tar.gz seven-wonders-dd4e15f71eaf29c743ac2bbcb2ae3c985e737ad9.tar.bz2 seven-wonders-dd4e15f71eaf29c743ac2bbcb2ae3c985e737ad9.zip |
Update redux flow typed files
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/flow-typed/npm/react-redux_v5.x.x.js | 11 | ||||
-rw-r--r-- | frontend/flow-typed/npm/redux-saga_v0.13.x.js | 17 | ||||
-rw-r--r-- | frontend/flow-typed/npm/redux_v3.x.x.js | 55 |
3 files changed, 72 insertions, 11 deletions
diff --git a/frontend/flow-typed/npm/react-redux_v5.x.x.js b/frontend/flow-typed/npm/react-redux_v5.x.x.js index bd817814..fa3b907c 100644 --- a/frontend/flow-typed/npm/react-redux_v5.x.x.js +++ b/frontend/flow-typed/npm/react-redux_v5.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: cfe423889942df70fd53fcaad18ef279 -// flow-typed version: 84d79be776/react-redux_v5.x.x/flow_>=v0.30.x +// flow-typed signature: 8db7b853f57c51094bf0ab8b2650fd9c +// flow-typed version: ab8db5f14d/react-redux_v5.x.x/flow_>=v0.30.x import type { Dispatch, Store } from 'redux' @@ -83,6 +83,13 @@ declare module 'react-redux' { declare function connect<S, A, OP, SP, DP, P>( mapStateToProps: MapStateToProps<S, OP, SP>, + mapDispatchToProps: Null, + mergeProps: MergeProps<SP, DP, OP, P>, + options?: ConnectOptions + ): Connector<OP, P>; + + declare function connect<S, A, OP, SP, DP, P>( + mapStateToProps: MapStateToProps<S, OP, SP>, mapDispatchToProps: MapDispatchToProps<A, OP, DP>, mergeProps: MergeProps<SP, DP, OP, P>, options?: ConnectOptions diff --git a/frontend/flow-typed/npm/redux-saga_v0.13.x.js b/frontend/flow-typed/npm/redux-saga_v0.13.x.js index b3615632..fccbbc18 100644 --- a/frontend/flow-typed/npm/redux-saga_v0.13.x.js +++ b/frontend/flow-typed/npm/redux-saga_v0.13.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 53c54fb34d5442d41873325ad8005b73 -// flow-typed version: fabec5868e/redux-saga_v0.13.x/flow_>=v0.38.x +// flow-typed signature: b4ebba1ec37948337add98158cf5c16f +// flow-typed version: 04b2138446/redux-saga_v0.13.x/flow_>=v0.38.x /* eslint-disable */ @@ -178,13 +178,18 @@ declare module 'redux-saga/effects' { declare type Buffer = $npm$ReduxSaga$Buffer; declare type Task = $npm$ReduxSaga$Task; - declare type TakeEffect<P> = $npm$ReduxSaga$IOEffect & { + declare type TakePatternEffect<P> = $npm$ReduxSaga$IOEffect & { TAKE: { - channel: ?Channel, pattern: P, }, }; + declare type TakeChannelEffect<C> = $npm$ReduxSaga$IOEffect & { + TAKE: { + channel: C, + }, + }; + declare type PutEffect<T> = $npm$ReduxSaga$IOEffect & { PUT: { channel: ?Channel, @@ -464,8 +469,8 @@ declare module 'redux-saga/effects' { & (<T, Fn: SelectFnSpread<T>>(selector: Fn, t1: T, t2: T, t3: T, t4: T, t5: T, t6: T, ...rest: Array<T>) => SelectEffectSpread<Fn, T>) declare type TakeFn = { - <P: Pattern>( pattern: P): TakeEffect<P>; - <P: Pattern>(channel: Channel, pattern: P): TakeEffect<P>; + <P: Pattern>(pattern: P): TakePatternEffect<P>; + <C: Channel>(channel: C): TakeChannelEffect<C>; } declare type PutFn = { diff --git a/frontend/flow-typed/npm/redux_v3.x.x.js b/frontend/flow-typed/npm/redux_v3.x.x.js index f4f5e200..711e5991 100644 --- a/frontend/flow-typed/npm/redux_v3.x.x.js +++ b/frontend/flow-typed/npm/redux_v3.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 7f1a115f75043c44385071ea3f33c586 -// flow-typed version: 358375125e/redux_v3.x.x/flow_>=v0.33.x +// flow-typed signature: 76c3dfb5a40ce169d5c08fe80dbd029a +// flow-typed version: 37b1c6d953/redux_v3.x.x/flow_>=v0.33.x declare module 'redux' { @@ -53,6 +53,55 @@ declare module 'redux' { declare function combineReducers<O: Object, A>(reducers: O): CombinedReducer<$ObjMap<O, <S>(r: Reducer<S, any>) => S>, A>; - declare function compose<S, A>(...fns: Array<StoreEnhancer<S, A>>): Function; + declare function compose<A, B>(ab: (a: A) => B): (a: A) => B + declare function compose<A, B, C>( + bc: (b: B) => C, + ab: (a: A) => B + ): (a: A) => C + declare 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>( + 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>( + 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>( + fg: (f: F) => G, + ef: (e: E) => F, + de: (d: D) => E, + cd: (c: C) => D, + bc: (b: B) => C, + ab: (a: A) => B + ): (a: A) => G + declare function compose<A, B, C, D, E, F, G, H>( + gh: (g: G) => H, + fg: (f: F) => G, + ef: (e: E) => F, + de: (d: D) => E, + cd: (c: C) => D, + bc: (b: B) => C, + ab: (a: A) => B + ): (a: A) => H + declare function compose<A, B, C, D, E, F, G, H, I>( + hi: (h: H) => I, + gh: (g: G) => H, + fg: (f: F) => G, + ef: (e: E) => F, + de: (d: D) => E, + cd: (c: C) => D, + bc: (b: B) => C, + ab: (a: A) => B + ): (a: A) => I } |