# ProxyAxiosInstance

Canonical: <https://test-proxy-recorder.dev/docs/reference/api/interfaces/proxyaxiosinstance/>
Docs index: <https://test-proxy-recorder.dev/docs/> · All docs as one file: <https://test-proxy-recorder.dev/llms-full.txt>

---

Defined in: [nextjs/registerProxyAxios.ts:23](https://github.com/asmyshlyaev177/test-proxy-recorder/blob/d1bacb3b39a3cf6f7f5a5391a8201868e4629861/packages/test-proxy-recorder/src/nextjs/registerProxyAxios.ts#L23)

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

### Config

`Config` *extends* [`ProxyAxiosRequestConfig`](/docs/reference/api/interfaces/proxyaxiosrequestconfig/) = [`ProxyAxiosRequestConfig`](/docs/reference/api/interfaces/proxyaxiosrequestconfig/)

## Properties

### \_\_testProxyRecorderPatched?

> `optional` **\_\_testProxyRecorderPatched?**: `boolean`

Defined in: [nextjs/registerProxyAxios.ts:32](https://github.com/asmyshlyaev177/test-proxy-recorder/blob/d1bacb3b39a3cf6f7f5a5391a8201868e4629861/packages/test-proxy-recorder/src/nextjs/registerProxyAxios.ts#L32)

Idempotency marker set after the first registration.

***

### interceptors

> **interceptors**: `object`

Defined in: [nextjs/registerProxyAxios.ts:26](https://github.com/asmyshlyaev177/test-proxy-recorder/blob/d1bacb3b39a3cf6f7f5a5391a8201868e4629861/packages/test-proxy-recorder/src/nextjs/registerProxyAxios.ts#L26)

#### request

> **request**: `object`

##### request.use()

> **use**(`onFulfilled`): `unknown`

###### Parameters

###### onFulfilled

(`config`) => `Config` \| `Promise`\<`Config`\>

###### Returns

`unknown`
