Skip to content

Commit

Permalink
Fix TS issues related to EmptyObject
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Sep 14, 2024
1 parent 6546899 commit 3753050
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/toolkit/src/query/react/ApiProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type { Context } from 'react'
import React, { useContext, useEffect } from 'react'
import type { ReactReduxContextValue } from 'react-redux'
import { Provider, ReactReduxContext } from 'react-redux'
import type { EmptyObject } from '../../tsHelpers'

/**
* Can be used as a `Provider` if you **do not already have a Redux store**.
Expand Down Expand Up @@ -33,7 +32,7 @@ import type { EmptyObject } from '../../tsHelpers'
*/
export function ApiProvider(props: {
children: any
api: Api<any, EmptyObject, any, any>
api: Api<any, Record<never, never>, any, any>
setupListeners?: Parameters<typeof setupListeners>[1] | false
context?: Context<ReactReduxContextValue | null>
}) {
Expand Down

0 comments on commit 3753050

Please sign in to comment.