Skip to content

Commit 3904687

Browse files
committed
Do not import ReducerAction type
1 parent 281b2e8 commit 3904687

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import {
88
Dispatch,
99
Reducer,
1010
ReducerState,
11-
ReducerAction,
1211
} from 'react';
1312

13+
type ReducerAction<R extends Reducer<any, any>> = R extends Reducer<any, infer A> ? A : never;
14+
1415
const isClient = (
1516
typeof window !== 'undefined'
1617
&& !/ServerSideRendering/.test(window.navigator && window.navigator.userAgent)

0 commit comments

Comments
 (0)