@@ -112,7 +112,7 @@ export type FetchBaseQueryArgs = {
112112 api : Pick <
113113 BaseQueryApi ,
114114 'getState' | 'extra' | 'endpoint' | 'type' | 'forced'
115- > & { args : string | FetchArgs } ,
115+ > & { arg : string | FetchArgs } ,
116116 ) => MaybePromise < Headers | void >
117117 fetchFn ?: (
118118 input : RequestInfo ,
@@ -164,9 +164,9 @@ export type FetchBaseQueryMeta = { request: Request; response?: Response }
164164 * The base URL for an API service.
165165 * Typically in the format of https://example.com/
166166 *
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
168168 * 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.
170170 * Useful for setting authentication or headers that need to be set conditionally.
171171 *
172172 * @link https://developer.mozilla.org/en-US/docs/Web/API/Headers
@@ -212,7 +212,7 @@ export function fetchBaseQuery({
212212 'Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments.' ,
213213 )
214214 }
215- return async ( args , api ) => {
215+ return async ( arg , api ) => {
216216 const { getState, extra, endpoint, forced, type } = api
217217 let meta : FetchBaseQueryMeta | undefined
218218 let {
@@ -223,7 +223,7 @@ export function fetchBaseQuery({
223223 validateStatus = globalValidateStatus ?? defaultValidateStatus ,
224224 timeout = defaultTimeout ,
225225 ...rest
226- } = typeof args == 'string' ? { url : args } : args
226+ } = typeof arg == 'string' ? { url : arg } : arg
227227
228228 let abortController : AbortController | undefined ,
229229 signal = api . signal
@@ -243,7 +243,7 @@ export function fetchBaseQuery({
243243 config . headers =
244244 ( await prepareHeaders ( headers , {
245245 getState,
246- args ,
246+ arg ,
247247 extra,
248248 endpoint,
249249 forced,
0 commit comments