@@ -105,14 +105,14 @@ function stripUndefined(obj: any) {
105
105
return copy
106
106
}
107
107
108
- export type FetchBaseQueryArgs < ExtraOptions = { } > = {
108
+ export type FetchBaseQueryArgs = {
109
109
baseUrl ?: string
110
110
prepareHeaders ?: (
111
111
headers : Headers ,
112
112
api : Pick <
113
113
BaseQueryApi ,
114
114
'getState' | 'extra' | 'endpoint' | 'type' | 'forced'
115
- > & { arg : string | FetchArgs ; extraOptions : ExtraOptions } ,
115
+ > & { arg : string | FetchArgs ; extraOptions : unknown } ,
116
116
) => MaybePromise < Headers | void >
117
117
fetchFn ?: (
118
118
input : RequestInfo ,
@@ -188,21 +188,8 @@ export type FetchBaseQueryMeta = { request: Request; response?: Response }
188
188
* @param {number } timeout
189
189
* A number in milliseconds that represents the maximum time a request can take before timing out.
190
190
*/
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
- >
205
- export function fetchBaseQuery < ExtraOptions > ( {
191
+
192
+ export function fetchBaseQuery ( {
206
193
baseUrl,
207
194
prepareHeaders = ( x ) => x ,
208
195
fetchFn = defaultFetchFn ,
@@ -214,11 +201,11 @@ export function fetchBaseQuery<ExtraOptions>({
214
201
responseHandler : globalResponseHandler ,
215
202
validateStatus : globalValidateStatus ,
216
203
...baseFetchOptions
217
- } : FetchBaseQueryArgs < ExtraOptions > = { } ) : BaseQueryFn <
204
+ } : FetchBaseQueryArgs = { } ) : BaseQueryFn <
218
205
string | FetchArgs ,
219
206
unknown ,
220
207
FetchBaseQueryError ,
221
- ExtraOptions ,
208
+ { } ,
222
209
FetchBaseQueryMeta
223
210
> {
224
211
if ( typeof fetch === 'undefined' && fetchFn === defaultFetchFn ) {
0 commit comments