Skip to content

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.

Config extends ProxyAxiosRequestConfig = ProxyAxiosRequestConfig

optional __testProxyRecorderPatched?: boolean

Defined in: nextjs/registerProxyAxios.ts:32

Idempotency marker set after the first registration.


interceptors: object

Defined in: nextjs/registerProxyAxios.ts:26

request: object

use(onFulfilled): unknown

(config) => Config | Promise<Config>

unknown