# RuleValue (@salmonui/core/validation)

> The RuleValue type of @salmonui/core/validation: A rule argument, or [argument, message] to override the message.

Canonical: https://salmonui.dev/docs/reference/core/validation/RuleValue

```ts
import type { RuleValue } from '@salmonui/core/validation';
```

Entry index: https://salmonui.dev/docs/reference/core/validation (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/core/validation.md).

## Reference

Kind: type

```ts
type RuleValue<T> = T | readonly [
    T,
    string
];
```

A rule argument, or `[argument, message]` to override the message.
