diff --git a/types/react-redux/index.d.ts b/types/react-redux/index.d.ts index 914505b2a9..a182c15526 100644 --- a/types/react-redux/index.d.ts +++ b/types/react-redux/index.d.ts @@ -391,7 +391,7 @@ export interface ConnectOptions { withRef?: boolean; /** * The react context to get the store from. - * + * * @default ReactReduxContext */ context?: Context; @@ -402,7 +402,7 @@ export interface ReactReduxContextObject storeState: SS; } -export type ReactReduxContextType = Context> +export type ReactReduxContextType = Context>; export interface ProviderProps { /** @@ -411,7 +411,7 @@ export interface ProviderProps { store: Store; /** * Optional context to be used internally in react-redux. Use React.createContext() to create a context to be used. - * If this is used, generate own connect HOC by using connectAdvanced, supplying the same context provided to the + * If this is used, generate own connect HOC by using connectAdvanced, supplying the same context provided to the * Provider. Initial value doesn't matter, as it is overwritten with the internal state of Provider. */ context?: Context; diff --git a/types/react-redux/react-redux-tests.tsx b/types/react-redux/react-redux-tests.tsx index 110d53cc1a..ba42d57f28 100644 --- a/types/react-redux/react-redux-tests.tsx +++ b/types/react-redux/react-redux-tests.tsx @@ -1212,25 +1212,24 @@ function TestLibraryManagedAttributes() { } function TestProviderContext() { - - //Internally in react-redux, null is used initially and overwritten in Provider with store and storeState. + // Internally in react-redux, null is used initially and overwritten in Provider with store and storeState. const context = React.createContext(null); class ComponentWithOwnContext extends React.Component { - public static contextType = context; + static contextType = context; } ; - + ; class ComponentWithDefaultContext extends React.Component { - public static contextType = ReactReduxContext; + static contextType = ReactReduxContext; } ; - // $ExpectError + ; // $ExpectError }