@@ -105,14 +105,14 @@ function stripUndefined(obj: any) {
105105 return copy
106106}
107107
108- export type FetchBaseQueryArgs < ExtraOptions = { } > = {
108+ export type FetchBaseQueryArgs = {
109109 baseUrl ?: string
110110 prepareHeaders ?: (
111111 headers : Headers ,
112112 api : Pick <
113113 BaseQueryApi ,
114114 'getState' | 'extra' | 'endpoint' | 'type' | 'forced'
115- > & { arg : string | FetchArgs ; extraOptions : ExtraOptions } ,
115+ > & { arg : string | FetchArgs ; extraOptions : unknown } ,
116116 ) => MaybePromise < Headers | void >
117117 fetchFn ?: (
118118 input : RequestInfo ,
@@ -188,21 +188,8 @@ 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- >
205- export function fetchBaseQuery < ExtraOptions > ( {
191+
192+ export function fetchBaseQuery ( {
206193 baseUrl,
207194 prepareHeaders = ( x ) => x ,
208195 fetchFn = defaultFetchFn ,
@@ -214,11 +201,11 @@ export function fetchBaseQuery<ExtraOptions>({
214201 responseHandler : globalResponseHandler ,
215202 validateStatus : globalValidateStatus ,
216203 ...baseFetchOptions
217- } : FetchBaseQueryArgs < ExtraOptions > = { } ) : BaseQueryFn <
204+ } : FetchBaseQueryArgs = { } ) : BaseQueryFn <
218205 string | FetchArgs ,
219206 unknown ,
220207 FetchBaseQueryError ,
221- ExtraOptions ,
208+ { } ,
222209 FetchBaseQueryMeta
223210> {
224211 if ( typeof fetch === 'undefined' && fetchFn === defaultFetchFn ) {
0 commit comments