Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/index.ts>ValueAction

The modular and type safe schema library for validating structural data 🤖
Latest
interface ValueAction
import { type ValueAction } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/index.ts";

Value action type.

Type Parameters

TInput extends ValueInput
TRequirement extends TInput
TMessage extends ErrorMessage<ValueIssue<TInput, TRequirement>> | undefined

Properties

readonly
type: "value"

The action type.

readonly
reference: value

The action reference.

readonly
expects: string

The expected property.

readonly
requirement: TRequirement

The required value.

readonly
message: TMessage

The error message.