-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Convert Context/Provider/Subscription to Typescript #1742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
211cdff
5e6c80d
286a131
5d71c44
1e49d3c
7865ed2
2966e30
088504b
420891d
e4eacc9
6a617e2
f1a4dbc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
import React from 'react' | ||
import type Subscription from '../utils/Subscription' | ||
|
||
export const ReactReduxContext = /*#__PURE__*/ React.createContext(null) | ||
export type ReduxContextProps = { | ||
store: any | ||
|
||
subscription: Subscription | ||
} | ||
export const ReactReduxContext = /*#__PURE__*/ React.createContext<ReduxContextProps | null>(null) | ||
|
||
if (process.env.NODE_ENV !== 'production') { | ||
ReactReduxContext.displayName = 'ReactRedux' | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know rollup so I'm not sure if this is necessary, but it seemed reasonable