From 0177fca410abd3f381e73bbd08e592bdc7781072 Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Thu, 5 Sep 2024 00:50:59 -0500 Subject: [PATCH] Fix TS issues related to `EmptyObject` --- packages/toolkit/src/query/react/ApiProvider.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/toolkit/src/query/react/ApiProvider.tsx b/packages/toolkit/src/query/react/ApiProvider.tsx index 7d31056623..df9c1fc7aa 100644 --- a/packages/toolkit/src/query/react/ApiProvider.tsx +++ b/packages/toolkit/src/query/react/ApiProvider.tsx @@ -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**. @@ -33,7 +32,7 @@ import type { EmptyObject } from '../../tsHelpers' */ export function ApiProvider(props: { children: any - api: Api + api: Api, any, any> setupListeners?: Parameters[1] | false context?: Context }) {