Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/valibot/src/schemas/set/setAsync.ts>setAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
function setAsync
import { setAsync } from "https://deno.land/x/valibot@v0.11.1/src/schemas/set/setAsync.ts";

Creates an async set schema.

Parameters

value: TSetValue

The value schema.

optional
pipe: PipeAsync<SetOutput<TSetValue>>

A validation and transformation pipe.

Returns

An async set schema.

Creates an async set schema.

Parameters

value: TSetValue

The value schema.

optional
error: string

The error message.

optional
pipe: PipeAsync<SetOutput<TSetValue>>

A validation and transformation pipe.

Returns

An async set schema.