fix(redux-devtools): type MonitorState should extend LiftedState (#612)

This commit is contained in:
Nathan Bierema 2020-08-26 09:16:44 -04:00 committed by GitHub
parent 0f51992b0b
commit 47af8c98ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ interface Props<
export type Monitor< export type Monitor<
S, S,
A extends Action<unknown>, A extends Action<unknown>,
MonitorProps, MonitorProps extends LiftedState<S, A, MonitorState>,
MonitorState, MonitorState,
MonitorAction extends Action<unknown> MonitorAction extends Action<unknown>
> = React.ReactElement< > = React.ReactElement<
@ -54,7 +54,7 @@ export type Monitor<
export default function createDevTools< export default function createDevTools<
S, S,
A extends Action<unknown>, A extends Action<unknown>,
MonitorProps, MonitorProps extends LiftedState<S, A, MonitorState>,
MonitorState, MonitorState,
MonitorAction extends Action<unknown> MonitorAction extends Action<unknown>
>(children: Monitor<S, A, MonitorProps, MonitorState, MonitorAction>) { >(children: Monitor<S, A, MonitorProps, MonitorState, MonitorAction>) {