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

x/valibot/mod.ts>MaxWordsIssue

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface MaxWordsIssue
implements BaseIssue<TInput>
import { type MaxWordsIssue } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/mod.ts";

Max words issue type.

Type Parameters

TInput extends string
TRequirement extends number

Properties

readonly
kind: "validation"

The issue kind.

readonly
type: "max_words"

The issue type.

readonly
expected: `<=${TRequirement}`

The expected property.

readonly
received: `${number}`

The received property.

readonly
requirement: TRequirement

The maximum words.