updated redux createStore definition to reflect the current 3.3.1 definition:

https://github.com/reactjs/redux/blob/master/src/createStore.js

@param {Function} enhancer
This commit is contained in:
Philipp Metzler 2016-03-26 12:26:56 +01:00
parent a44529fcb1
commit c2bfaedeee

4
redux/redux.d.ts vendored
View File

@ -1,4 +1,4 @@
// Type definitions for Redux v1.0.0
// Type definitions for Redux v3.3.1
// Project: https://github.com/rackt/redux
// Definitions by: William Buchwalter <https://github.com/wbuchwalter/>, Vincent Prouillet <https://github.com/Keats/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@ -40,7 +40,7 @@ declare namespace Redux {
subscribe(listener: Function): Function;
}
function createStore(reducer: Reducer, initialState?: any, enhancer?: ()=>any): Store;
function createStore(reducer: Reducer, initialState?: any, enhancer?: Function): Store;
function bindActionCreators<T>(actionCreators: T, dispatch: Dispatch): T;
function combineReducers(reducers: any): Reducer;
function applyMiddleware(...middlewares: Middleware[]): Function;