Skip to content

Commit 1918f13

Browse files
phryneasmarkerikson
authored andcommitted
fix bad inference with an overload?
1 parent 6ef362f commit 1918f13

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/toolkit/src/query/fetchBaseQuery.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,20 @@ export type FetchBaseQueryMeta = { request: Request; response?: Response }
188188
* @param {number} timeout
189189
* A number in milliseconds that represents the maximum time a request can take before timing out.
190190
*/
191+
export function fetchBaseQuery(options?: FetchBaseQueryArgs<{}>): BaseQueryFn<
192+
string | FetchArgs,
193+
unknown,
194+
FetchBaseQueryError,
195+
{},
196+
FetchBaseQueryMeta
197+
>
198+
export function fetchBaseQuery<ExtraOptions>(options?: FetchBaseQueryArgs<ExtraOptions>): BaseQueryFn<
199+
string | FetchArgs,
200+
unknown,
201+
FetchBaseQueryError,
202+
ExtraOptions,
203+
FetchBaseQueryMeta
204+
>
191205
export function fetchBaseQuery<ExtraOptions>({
192206
baseUrl,
193207
prepareHeaders = (x) => x,

0 commit comments

Comments
 (0)