# SwapConfig

> This document is the Markdown version of [formisch.dev/methods/api/SwapConfig/](https://formisch.dev/methods/api/SwapConfig/). For the complete documentation index, see [llms.txt](https://formisch.dev/llms.txt).

Configuration interface for swapping items in array fields. Used by the `swap` method.

## Generics

- `TSchema` `extends FormSchema`
- `TFieldArrayPath` `extends RequiredPath`

## Definition

- `SwapConfig`
  - `path` `ValidArrayPath<v.InferInput<TSchema>, TFieldArrayPath>`
  - `at` `number`
  - `and` `number`

## Related

### Methods

[`swap`](/methods/api/swap.md)
