# defineConfig

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

---

> **defineConfig**(`config`): [`Config`](/docs/reference/api/interfaces/config/)

Defined in: [config.ts:42](https://github.com/asmyshlyaev177/test-proxy-recorder/blob/d1bacb3b39a3cf6f7f5a5391a8201868e4629861/packages/test-proxy-recorder/src/config.ts#L42)

Identity helper for config files. Wrapping the object gives type-checking and
editor autocomplete without changing its value:

```ts
// test-proxy-recorder.config.ts
import { defineConfig } from 'test-proxy-recorder';

export default defineConfig({
  target: 'http://localhost:3000',
  redaction: { bodyPatterns: [/sk_live_\w+/g] },
});
```

## Parameters

### config

[`Config`](/docs/reference/api/interfaces/config/)

## Returns

[`Config`](/docs/reference/api/interfaces/config/)
