@@ -112,7 +112,7 @@ export type FetchBaseQueryArgs = {
112
112
api : Pick <
113
113
BaseQueryApi ,
114
114
'getState' | 'extra' | 'endpoint' | 'type' | 'forced'
115
- > & { args : string | FetchArgs } ,
115
+ > & { arg : string | FetchArgs } ,
116
116
) => MaybePromise < Headers | void >
117
117
fetchFn ?: (
118
118
input : RequestInfo ,
@@ -164,9 +164,9 @@ export type FetchBaseQueryMeta = { request: Request; response?: Response }
164
164
* The base URL for an API service.
165
165
* Typically in the format of https://example.com/
166
166
*
167
- * @param {(headers: Headers, api: { getState: () => unknown; args : string | FetchArgs; extra: unknown; endpoint: string; type: 'query' | 'mutation'; forced: boolean; }) => Headers } prepareHeaders
167
+ * @param {(headers: Headers, api: { getState: () => unknown; arg : string | FetchArgs; extra: unknown; endpoint: string; type: 'query' | 'mutation'; forced: boolean; }) => Headers } prepareHeaders
168
168
* An optional function that can be used to inject headers on requests.
169
- * Provides a Headers object, most of the `BaseQueryApi` (`dispatch` is not available), and the args passed into the query function.
169
+ * Provides a Headers object, most of the `BaseQueryApi` (`dispatch` is not available), and the arg passed into the query function.
170
170
* Useful for setting authentication or headers that need to be set conditionally.
171
171
*
172
172
* @link https://developer.mozilla.org/en-US/docs/Web/API/Headers
@@ -212,7 +212,7 @@ export function fetchBaseQuery({
212
212
'Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments.' ,
213
213
)
214
214
}
215
- return async ( args , api ) => {
215
+ return async ( arg , api ) => {
216
216
const { getState, extra, endpoint, forced, type } = api
217
217
let meta : FetchBaseQueryMeta | undefined
218
218
let {
@@ -223,7 +223,7 @@ export function fetchBaseQuery({
223
223
validateStatus = globalValidateStatus ?? defaultValidateStatus ,
224
224
timeout = defaultTimeout ,
225
225
...rest
226
- } = typeof args == 'string' ? { url : args } : args
226
+ } = typeof arg == 'string' ? { url : arg } : arg
227
227
228
228
let abortController : AbortController | undefined ,
229
229
signal = api . signal
@@ -243,7 +243,7 @@ export function fetchBaseQuery({
243
243
config . headers =
244
244
( await prepareHeaders ( headers , {
245
245
getState,
246
- args ,
246
+ arg ,
247
247
extra,
248
248
endpoint,
249
249
forced,
0 commit comments