# GuardAction

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

Guard action interface.

## Generics

- `TInput` `extends any`
- `TGuard` `extends GuardFunction<TInput>`
- `TMessage` `extends ErrorMessage<GuardIssue<TInput, TGuard>> | undefined`

## Definition

- `GuardAction` `extends BaseTransformation<TInput, TInput & InferGuardOutput<TGuard>, GuardIssue<TInput, TGuard>>`
  - `type` `'guard'`
  - `reference` `typeof guard`
  - `requirement` `TGuard`
  - `message` `TMessage`
