Merge branch 'redux-immutable-type' into 'develop'
Improve redux-immutable type definition See merge request soapbox-pub/soapbox-fe!1113
This commit is contained in:
commit
13018cf809
1 changed files with 2 additions and 2 deletions
4
types/redux-immutable/index.d.ts
vendored
4
types/redux-immutable/index.d.ts
vendored
|
@ -7,11 +7,11 @@
|
|||
// TypeScript Version: 2.3
|
||||
|
||||
declare module 'redux-immutable' {
|
||||
import { Collection, Record as ImmutableRecord } from 'immutable';
|
||||
import { Collection, Record } from 'immutable';
|
||||
import { ReducersMapObject, Reducer, Action } from 'redux';
|
||||
|
||||
export function combineReducers<S, A extends Action, T>(reducers: ReducersMapObject<S, A>, getDefaultState?: () => Collection.Keyed<T, S>): Reducer<S, A>;
|
||||
export function combineReducers<S, A extends Action>(reducers: ReducersMapObject<S, A>, getDefaultState?: () => Collection.Indexed<S>): Reducer<S, A>;
|
||||
export function combineReducers<S>(reducers: ReducersMapObject<S, any>, getDefaultState?: () => Collection.Indexed<S>): Reducer<S>;
|
||||
export function combineReducers<S>(reducers: ReducersMapObject<S, any>, getDefaultState?: () => ImmutableRecord<any>): Reducer<S>;
|
||||
export function combineReducers<S, T extends object>(reducers: ReducersMapObject<S, any>, getDefaultState?: Record.Factory<T>): Reducer<S>;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue