Skip to content

Commit c6a7e35

Browse files
committedSep 11, 2024
Fix TS issues related to EmptyObject
1 parent 6549f8b commit c6a7e35

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎packages/toolkit/src/query/react/ApiProvider.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { Context } from 'react'
55
import React, { useContext, useEffect } from 'react'
66
import type { ReactReduxContextValue } from 'react-redux'
77
import { Provider, ReactReduxContext } from 'react-redux'
8-
import type { EmptyObject } from '../../tsHelpers'
98

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

0 commit comments

Comments
 (0)
Failed to load comments.