Skip to content

Commit

Permalink
Merge pull request #4658 from Reedgern/fix-serializeQueryArgs-type
Browse files Browse the repository at this point in the history
Fix serializeQueryTags type
  • Loading branch information
EskiMojo14 authored Oct 9, 2024
2 parents e7540a5 + e646e9f commit d5b8808
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/toolkit/etc/rtk-query-react.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export interface CreateApiOptions<
refetchOnFocus?: boolean
refetchOnMountOrArgChange?: boolean | number
refetchOnReconnect?: boolean
serializeQueryArgs?: SerializeQueryArgs<BaseQueryArg<BaseQuery>>
serializeQueryArgs?: SerializeQueryArgs<unknown>
tagTypes?: readonly TagTypes[]
}

Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/etc/rtk-query.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export interface CreateApiOptions<
refetchOnFocus?: boolean
refetchOnMountOrArgChange?: boolean | number
refetchOnReconnect?: boolean
serializeQueryArgs?: SerializeQueryArgs<BaseQueryArg<BaseQuery>>
serializeQueryArgs?: SerializeQueryArgs<unknown>
structuralSharing?: boolean
tagTypes?: readonly TagTypes[]
}
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/src/query/createApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export interface CreateApiOptions<
/**
* Accepts a custom function if you have a need to change the creation of cache keys for any reason.
*/
serializeQueryArgs?: SerializeQueryArgs<BaseQueryArg<BaseQuery>>
serializeQueryArgs?: SerializeQueryArgs<unknown>
/**
* Endpoints are just a set of operations that you want to perform against your server. You define them as an object using the builder syntax. There are two basic endpoint types: [`query`](../../rtk-query/usage/queries) and [`mutation`](../../rtk-query/usage/mutations).
*/
Expand Down

0 comments on commit d5b8808

Please sign in to comment.