mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-03 23:42:50 +00:00
23 lines
792 B
TypeScript
23 lines
792 B
TypeScript
|
|
import { combineReducers } from 'redux-immutable';
|
|
import { Map, List } from 'immutable';
|
|
|
|
// Dummy State interface
|
|
interface State { };
|
|
|
|
/**
|
|
* Combine reducers should work with only one argument (a reducers object).
|
|
*/
|
|
combineReducers({});
|
|
combineReducers<State>({});
|
|
|
|
/**
|
|
* Combine reducers should accepts a function (getDefaultState()) as a second parameter, that returns an immutable Collection.Keyed collection.
|
|
*/
|
|
combineReducers<State, string>({}, () => { return Map<string, State>(); });
|
|
combineReducers<State, number>({}, () => { return Map<number, State>(); });
|
|
/**
|
|
* Combine reducers should accepts a function (getDefaultState()) as a second parameter, that returns an immutable Collection.Indexed collection.
|
|
*/
|
|
combineReducers<State>({}, () => { return List<State>(); });
|