Skip to content

Commit 9455c49

Browse files
committed
fix types
1 parent 9b8dcfe commit 9455c49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hooks/useSelector.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ const refEquality: EqualityFn<any> = (a, b) => a === b
4343
* @returns {Function} A `useSelector` hook bound to the specified context.
4444
*/
4545
export function createSelectorHook(
46-
context: React.Context<ReactReduxContextValue<any, any>> = ReactReduxContext
46+
context: React.Context<ReactReduxContextValue<
47+
any,
48+
any
49+
> | null> = ReactReduxContext
4750
): UseSelector {
4851
const useReduxContext =
4952
context === ReactReduxContext

0 commit comments

Comments
 (0)