Skip to content

Commit

Permalink
fix bad inference with an overload?
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Mar 21, 2024
1 parent b0f9236 commit 968c2f6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/toolkit/src/query/fetchBaseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,20 @@ export type FetchBaseQueryMeta = { request: Request; response?: Response }
* @param {number} timeout
* A number in milliseconds that represents the maximum time a request can take before timing out.
*/
export function fetchBaseQuery(options?: FetchBaseQueryArgs<{}>): BaseQueryFn<
string | FetchArgs,
unknown,
FetchBaseQueryError,
{},
FetchBaseQueryMeta
>
export function fetchBaseQuery<ExtraOptions>(options?: FetchBaseQueryArgs<ExtraOptions>): BaseQueryFn<
string | FetchArgs,
unknown,
FetchBaseQueryError,
ExtraOptions,
FetchBaseQueryMeta
>
export function fetchBaseQuery<ExtraOptions>({
baseUrl,
prepareHeaders = (x) => x,
Expand Down

0 comments on commit 968c2f6

Please sign in to comment.