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

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

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

Creates a some item validation action.

Parameters

requirement: ArrayRequirement<TInput>

The validation function.

Returns

A some item action.

Creates a some item validation action.

Type Parameters

TInput extends ArrayInput
TMessage extends ErrorMessage<SomeItemIssue<TInput>> | undefined

Parameters

requirement: ArrayRequirement<TInput>

The validation function.

message: TMessage

The error message.

Returns

A some item action.