Skip to content

Commit 1474d98

Browse files
committed
fix: fix combineReducers TS type
1 parent 546e429 commit 1474d98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/combineReducers.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { AnyAction, Reducer } from 'redux'
22
import { Map as iMap, RecordOf } from 'immutable'
33

4-
type RecordProps<S extends RecordOf<any>> = S extends RecordOf<infer P>
4+
type RecordProps<S extends RecordOf<any>> = S extends { toJSON(): infer P }
55
? P
66
: never
77

0 commit comments

Comments
 (0)