Skip to content

Commit 9a02b4c

Browse files
committed
add missing type
1 parent 502e9a5 commit 9a02b4c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Context.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ const gT: {
2626
function getContext(): Context<ReactReduxContextValue> {
2727
if (!React.createContext) return {} as any
2828

29-
const contextMap = (gT[ContextKey] ??= new Map())
29+
const contextMap = (gT[ContextKey] ??= new Map<
30+
typeof React.createContext,
31+
Context<ReactReduxContextValue>
32+
>())
3033
let realContext = contextMap.get(React.createContext)
3134
if (!realContext) {
3235
realContext = React.createContext<ReactReduxContextValue>(null as any)

0 commit comments

Comments
 (0)