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 b58bf65 commit 327a8f8
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 327a8f8

Please sign in to comment.