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

x/valibot/src/actions/index.ts>NanoIDAction

The modular and type safe schema library for validating structural data 🤖
Latest
interface NanoIDAction
implements BaseValidation<TInput, TInput, NanoIDIssue<TInput>>
import { type NanoIDAction } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/actions/index.ts";

Nano ID action type.

Type Parameters

TInput extends string
TMessage extends ErrorMessage<NanoIDIssue<TInput>> | undefined

Properties

readonly
type: "nanoid"

The action type.

readonly
reference: nanoid

The action reference.

readonly
expects: null

The expected property.

readonly
requirement: RegExp

The Nano ID regex.

readonly
message: TMessage

The error message.