Commit Graph

14 Commits

Author SHA1 Message Date
Daniel Lytkin
085eaec93d Improve typings for compose function (#1868) 2016-07-26 16:59:02 -04:00
David Livingston
b523aa4ae5 Issue 1743 (#1770)
* rename createStore param `initialState` to `preloadedState`

* rename configureStore param `initialState` to `preloadedState`

* rename `window.__INITIAL_STATE__` in examples and docs

rename window.__INITIAL_STATE__ to window.__PRELOADED_STATE__
2016-05-27 20:50:45 +01:00
Igor Oleinikov
9db3dd4f52 Fix typescript test of store enhancer 2016-04-04 18:53:36 -07:00
Igor Oleinikov
324849df22 Improve typing of StoreEnhancer 2016-04-04 17:50:05 -07:00
Igor Oleinikov
658fa6faa4 Fix typescript tests of middlewares. 2016-03-21 23:17:47 -07:00
Igor Oleinikov
e767e13ec5 Improve basic dispatch signature. Fix typescript tests. 2016-03-21 23:13:36 -07:00
Igor Oleinikov
2d2948152a Fix line ending. 2016-03-18 15:53:19 -07:00
Igor Oleinikov
b0d60c4d2a Add state type to Dispatch interface and improve thunk test with proper module augmentation. 2016-03-18 15:51:48 -07:00
Ciuca, Alexandru
74e16aae1c Type safety for dispatch signature 2016-03-17 12:12:16 +02:00
Daniel Lytkin
a5d44fab7a Update TypeScript definitions
Remove redundant type parameters from `Dispatch` type
Remove redundant `combineReducers` overload
Simplify `StoreCreator` type by using optional arguments
Remove redundant type parameters from `Middleware` type
Update `compose` definitions to cover case with zero arguments and case with multiple arguments for innermost function
Add JSDoc
2016-02-24 17:27:50 +06:00
Daniel Lytkin
16325a227b Update TypeScript definitions
Add two more overloads for `bindActionCreators`
2016-02-19 17:24:38 +06:00
Daniel Lytkin
a6b4d80266 Update TypeScript definitions
Add type parameter for `Action`
Stronger typings for `combineReducers`, add `ReducerMapObject` type
Add Unsubscribe type
Stronger typings for `bindActionCreators`, add `ActionCreatorsMapObject` type
Add and refine tests for complete coverage
2016-02-18 18:26:34 +06:00
Daniel Lytkin
b19ebc1695 Update TypeScript definitions
More strict types: replace `any` with type parameters
Add middleware tests
2016-02-18 11:58:53 +06:00
Daniel Lytkin
6b4f7f6495 Add tests for TypeScript definitions 2016-02-17 12:56:13 +06:00