Skip to content

Commit

Permalink
Hack around TS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Sep 29, 2024
1 parent ebff888 commit c967de6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/toolkit/src/query/react/buildHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,9 @@ export function buildHooks<Definitions extends EndpointDefinitions>({
skipPollingIfUnfocused = false,
} = {},
) => {
const { initiate } = api.endpoints[name] as ApiEndpointInfiniteQuery<
const { initiate } = api.endpoints[
name
] as unknown as ApiEndpointInfiniteQuery<
InfiniteQueryDefinition<any, any, any, any, any>,
Definitions
>
Expand Down Expand Up @@ -1725,7 +1727,7 @@ export function buildHooks<Definitions extends EndpointDefinitions>({
) => {
const { select, initiate } = api.endpoints[
name
] as ApiEndpointInfiniteQuery<
] as unknown as ApiEndpointInfiniteQuery<
InfiniteQueryDefinition<any, any, any, any, any>,
Definitions
>
Expand Down

0 comments on commit c967de6

Please sign in to comment.