Skip to content

Commit

Permalink
Fix formatting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Apr 23, 2019
1 parent eb2938c commit 6fe5614
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ export function combineReducers<T extends ReducersMapObject<any, any>>(
reducers: T
): Reducer<InferStateType<T>, InferActionTypes<InferReducerTypes<T>>>

type InferActionTypes<R> = R extends Reducer<any, infer A> ? A : AnyAction;
type InferReducerTypes<T> = T extends Record<any, infer R> ? R : Reducer;
type InferStateType<T> = T extends ReducersMapObject<infer S, any> ? S : never;
type InferActionTypes<R> = R extends Reducer<any, infer A> ? A : AnyAction
type InferReducerTypes<T> = T extends Record<any, infer R> ? R : Reducer
type InferStateType<T> = T extends ReducersMapObject<infer S, any> ? S : never

/* store */

Expand Down

0 comments on commit 6fe5614

Please sign in to comment.