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

x/valibot/src/validations/includes/index.ts>includes

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function includes
import { includes } from "https://deno.land/x/valibot@v0.8.0/src/validations/includes/index.ts";

Type Parameters

TInput extends string

Parameters

requirement: string
optional
error: string

Returns

(input: TInput, info: ValidateInfo) => TInput

Type Parameters

TInput extends TItem[]
TItem

Parameters

requirement: TItem
optional
error: string

Returns

(input: TInput, info: ValidateInfo) => TInput