We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 281b2e8 commit 3904687Copy full SHA for 3904687
src/index.ts
@@ -8,9 +8,10 @@ import {
8
Dispatch,
9
Reducer,
10
ReducerState,
11
- ReducerAction,
12
} from 'react';
13
+type ReducerAction<R extends Reducer<any, any>> = R extends Reducer<any, infer A> ? A : never;
14
+
15
const isClient = (
16
typeof window !== 'undefined'
17
&& !/ServerSideRendering/.test(window.navigator && window.navigator.userAgent)
0 commit comments