diff --git a/keyserver/flow-typed/npm/redux_v4.x.x.js b/keyserver/flow-typed/npm/redux_v4.x.x.js --- a/keyserver/flow-typed/npm/redux_v4.x.x.js +++ b/keyserver/flow-typed/npm/redux_v4.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: cf5a251230b87bfccb7000d63228c501 -// flow-typed version: 7735fcd9c6/redux_v4.x.x/flow_>=v0.134.x +// flow-typed signature: f42950aebee3189b48dae0d4697c6776 +// flow-typed version: 0e28de5e8a/redux_v4.x.x/flow_>=v0.201.x declare module 'redux' { /* @@ -14,7 +14,7 @@ declare export type DispatchAPI = (action: A) => A; - declare export type Dispatch = DispatchAPI; + declare export type Dispatch = DispatchAPI; declare export type MiddlewareAPI> = { dispatch: D, @@ -31,12 +31,7 @@ ... }; - declare export type Reducer = (state: S | void, action: A) => S; - - declare export type CombinedReducer = ( - state: ($Shape & {...}) | void, - action: A - ) => S; + declare export type Reducer = (state: S, action: A) => S; declare export type Middleware> = ( api: MiddlewareAPI @@ -66,6 +61,16 @@ enhancer?: StoreEnhancer ): Store; + declare export function legacy_createStore( + reducer: Reducer, + enhancer?: StoreEnhancer + ): Store; + declare export function legacy_createStore( + reducer: Reducer, + preloadedState?: S, + enhancer?: StoreEnhancer + ): Store; + declare export function applyMiddleware( ...middlewares: Array> ): StoreEnhancer; @@ -91,9 +96,9 @@ dispatch: D ): C; - declare export function combineReducers( - reducers: O - ): CombinedReducer<$ObjMap(r: Reducer) => S>, A>; + declare export function combineReducers( + reducers: $ObjMap(V) => Reducer>, + ): Reducer; declare export var compose: $Compose; } diff --git a/lib/flow-typed/npm/redux_v4.x.x.js b/lib/flow-typed/npm/redux_v4.x.x.js --- a/lib/flow-typed/npm/redux_v4.x.x.js +++ b/lib/flow-typed/npm/redux_v4.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: cf5a251230b87bfccb7000d63228c501 -// flow-typed version: 7735fcd9c6/redux_v4.x.x/flow_>=v0.134.x +// flow-typed signature: f42950aebee3189b48dae0d4697c6776 +// flow-typed version: 0e28de5e8a/redux_v4.x.x/flow_>=v0.201.x declare module 'redux' { /* @@ -14,7 +14,7 @@ declare export type DispatchAPI = (action: A) => A; - declare export type Dispatch = DispatchAPI; + declare export type Dispatch = DispatchAPI; declare export type MiddlewareAPI> = { dispatch: D, @@ -31,12 +31,7 @@ ... }; - declare export type Reducer = (state: S | void, action: A) => S; - - declare export type CombinedReducer = ( - state: ($Shape & {...}) | void, - action: A - ) => S; + declare export type Reducer = (state: S, action: A) => S; declare export type Middleware> = ( api: MiddlewareAPI @@ -66,6 +61,16 @@ enhancer?: StoreEnhancer ): Store; + declare export function legacy_createStore( + reducer: Reducer, + enhancer?: StoreEnhancer + ): Store; + declare export function legacy_createStore( + reducer: Reducer, + preloadedState?: S, + enhancer?: StoreEnhancer + ): Store; + declare export function applyMiddleware( ...middlewares: Array> ): StoreEnhancer; @@ -91,9 +96,9 @@ dispatch: D ): C; - declare export function combineReducers( - reducers: O - ): CombinedReducer<$ObjMap(r: Reducer) => S>, A>; + declare export function combineReducers( + reducers: $ObjMap(V) => Reducer>, + ): Reducer; declare export var compose: $Compose; } diff --git a/native/flow-typed/npm/redux_v4.x.x.js b/native/flow-typed/npm/redux_v4.x.x.js --- a/native/flow-typed/npm/redux_v4.x.x.js +++ b/native/flow-typed/npm/redux_v4.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: cf5a251230b87bfccb7000d63228c501 -// flow-typed version: 7735fcd9c6/redux_v4.x.x/flow_>=v0.134.x +// flow-typed signature: f42950aebee3189b48dae0d4697c6776 +// flow-typed version: 0e28de5e8a/redux_v4.x.x/flow_>=v0.201.x declare module 'redux' { /* @@ -14,7 +14,7 @@ declare export type DispatchAPI = (action: A) => A; - declare export type Dispatch = DispatchAPI; + declare export type Dispatch = DispatchAPI; declare export type MiddlewareAPI> = { dispatch: D, @@ -31,12 +31,7 @@ ... }; - declare export type Reducer = (state: S | void, action: A) => S; - - declare export type CombinedReducer = ( - state: ($Shape & {...}) | void, - action: A - ) => S; + declare export type Reducer = (state: S, action: A) => S; declare export type Middleware> = ( api: MiddlewareAPI @@ -66,6 +61,16 @@ enhancer?: StoreEnhancer ): Store; + declare export function legacy_createStore( + reducer: Reducer, + enhancer?: StoreEnhancer + ): Store; + declare export function legacy_createStore( + reducer: Reducer, + preloadedState?: S, + enhancer?: StoreEnhancer + ): Store; + declare export function applyMiddleware( ...middlewares: Array> ): StoreEnhancer; @@ -91,9 +96,9 @@ dispatch: D ): C; - declare export function combineReducers( - reducers: O - ): CombinedReducer<$ObjMap(r: Reducer) => S>, A>; + declare export function combineReducers( + reducers: $ObjMap(V) => Reducer>, + ): Reducer; declare export var compose: $Compose; } diff --git a/web/flow-typed/npm/redux_v4.x.x.js b/web/flow-typed/npm/redux_v4.x.x.js --- a/web/flow-typed/npm/redux_v4.x.x.js +++ b/web/flow-typed/npm/redux_v4.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: cf5a251230b87bfccb7000d63228c501 -// flow-typed version: 7735fcd9c6/redux_v4.x.x/flow_>=v0.134.x +// flow-typed signature: f42950aebee3189b48dae0d4697c6776 +// flow-typed version: 0e28de5e8a/redux_v4.x.x/flow_>=v0.201.x declare module 'redux' { /* @@ -14,7 +14,7 @@ declare export type DispatchAPI = (action: A) => A; - declare export type Dispatch = DispatchAPI; + declare export type Dispatch = DispatchAPI; declare export type MiddlewareAPI> = { dispatch: D, @@ -31,12 +31,7 @@ ... }; - declare export type Reducer = (state: S | void, action: A) => S; - - declare export type CombinedReducer = ( - state: ($Shape & {...}) | void, - action: A - ) => S; + declare export type Reducer = (state: S, action: A) => S; declare export type Middleware> = ( api: MiddlewareAPI @@ -66,6 +61,16 @@ enhancer?: StoreEnhancer ): Store; + declare export function legacy_createStore( + reducer: Reducer, + enhancer?: StoreEnhancer + ): Store; + declare export function legacy_createStore( + reducer: Reducer, + preloadedState?: S, + enhancer?: StoreEnhancer + ): Store; + declare export function applyMiddleware( ...middlewares: Array> ): StoreEnhancer; @@ -91,9 +96,9 @@ dispatch: D ): C; - declare export function combineReducers( - reducers: O - ): CombinedReducer<$ObjMap(r: Reducer) => S>, A>; + declare export function combineReducers( + reducers: $ObjMap(V) => Reducer>, + ): Reducer; declare export var compose: $Compose; }