ProxyAxiosInstance
このコンテンツはまだ日本語訳がありません。
Defined in: nextjs/registerProxyAxios.ts:23
Minimal structural shape of an axios instance — just the request-interceptor
registration we need. A real AxiosInstance satisfies this.
Generic over the request-config type so a real axios instance — whose
interceptor callback is typed against the stricter InternalAxiosRequestConfig
(a required AxiosHeaders, not our optional unknown) — is accepted: the
concrete config type is inferred at the call site. The default keeps the bare
ProxyAxiosInstance usable in tests with a plain config.
Type Parameters
Section titled “Type Parameters”Config
Section titled “Config”Config extends ProxyAxiosRequestConfig = ProxyAxiosRequestConfig
Properties
Section titled “Properties”__testProxyRecorderPatched?
Section titled “__testProxyRecorderPatched?”
optional__testProxyRecorderPatched?:boolean
Defined in: nextjs/registerProxyAxios.ts:32
Idempotency marker set after the first registration.
interceptors
Section titled “interceptors”interceptors:
object
Defined in: nextjs/registerProxyAxios.ts:26
request
Section titled “request”request:
object
request.use()
Section titled “request.use()”use(
onFulfilled):unknown
Parameters
Section titled “Parameters”onFulfilled
Section titled “onFulfilled”(config) => Config | Promise<Config>
Returns
Section titled “Returns”unknown