diff --git a/src/components/Provider.tsx b/src/components/Provider.tsx index 364ff7bc8..f3ffb2da1 100644 --- a/src/components/Provider.tsx +++ b/src/components/Provider.tsx @@ -4,7 +4,7 @@ import { createSubscription } from '../utils/Subscription' import { useIsomorphicLayoutEffect } from '../utils/useIsomorphicLayoutEffect' import { Action, AnyAction, Store } from 'redux' -export interface ProviderProps { +export interface ProviderProps { /** * The single Redux store in your application. */ @@ -24,12 +24,12 @@ export interface ProviderProps { children: ReactNode } -function Provider({ +function Provider({ store, context, children, serverState, -}: ProviderProps) { +}: ProviderProps) { const contextValue = useMemo(() => { const subscription = createSubscription(store) return { diff --git a/test/typetests/provider.tsx b/test/typetests/provider.tsx new file mode 100644 index 000000000..f6cbc263c --- /dev/null +++ b/test/typetests/provider.tsx @@ -0,0 +1,19 @@ +/* eslint-disable @typescript-eslint/no-unused-vars */ + +import React from 'react' +import { Provider } from '../../src' +import { Store } from 'redux' + +declare const store: Store<{ foo: string }> + +function App() { + return ( + + foo + + ) +}