title: React Redux RTK Query with multiple Parameters throws Error on providesTags function
body: <p>i am currently implementing React Redux RTK into my React Application and i have a Problem with Fetching Data.</p>
  <p>I want to create an Endpoint where the Query needs multiple Parameters to work. For example, the Endpoint is <code>https://localhost:8080/object/id</code> where Object and Id are the Parameters i need to get the Data from.</p>
  <p>I have created an Interface like this for the Query:</p>
  <pre><code>export interface ISearch {
      objectName: string,
      id: string
  }
  </code></pre>
  <p>And my apiSlice looks like this:</p>
  <pre><code>import {createApi, fetchBaseQuery} from &quot;@reduxjs/toolkit/query&quot;;
  import {ISearch} from &quot;../utils/Interfaces&quot;;
  
  export const apiSlice = createApi({
      reducerPath: 'api',
      baseQuery: fetchBaseQuery({
          baseUrl: 'https://localhost:8080/api/v1'
      }),
      tagTypes: ['Record'],
      endpoints: builder =&gt; ({
          getRecord: builder.query({
              query: (params: ISearch) =&gt; `/${params.objectName}/${params.id}`,
              providesTags: (result, error, arg) =&gt; [{
                  type: 'Record',
                  id: arg
              }]
          })
      })
  })
  </code></pre>
  <p>The only Problem is that i am getting the following Error on the <code>providesTags</code> function:</p>
  <pre><code>TS2322: Type '(result: any, error: FetchBaseQueryError, arg: ISearch) =&gt; { type: &quot;Record&quot;; id: ISearch; }[]' is not assignable to type 'ResultDescription&lt;&quot;ObjectDefinition&quot; | &quot;Record&quot;, any, ISearch, FetchBaseQueryError, FetchBaseQueryMeta&gt;'.   Type '(result: any, error: FetchBaseQueryError, arg: ISearch) =&gt; { type: &quot;Record&quot;; id: ISearch; }[]' is not assignable to type 'GetResultDescriptionFn&lt;&quot;ObjectDefinition&quot; | &quot;Record&quot;, any, ISearch, FetchBaseQueryError, FetchBaseQueryMeta&gt;'.     Type '{ type: &quot;Record&quot;; id: ISearch; }[]' is not assignable to type 'readonly TagDescription&lt;&quot;ObjectDefinition&quot; | &quot;Record&quot;&gt;[]'.       Type '{ type: &quot;Record&quot;; id: ISearch; }' is not assignable to type 'TagDescription&lt;&quot;ObjectDefinition&quot; | &quot;Record&quot;&gt;'.         Type '{ type: &quot;Record&quot;; id: ISearch; }' is not assignable to type 'FullTagDescription&lt;&quot;ObjectDefinition&quot; | &quot;Record&quot;&gt;'.           Types of property 'id' are incompatible.             Type 'ISearch' is not assignable to type 'string | number'.               Type 'ISearch' is not assignable to type 'number'.
  </code></pre>