Skip to main content
Module

x/valibot/mod.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.22.0/mod.ts";

Creates an async set schema.

Parameters

value: TValue

The value schema.

optional
pipe: PipeAsync<SetOutput<TValue>>

A validation and transformation pipe.

Returns

An async set schema.

Creates an async set schema.

Parameters

value: TValue

The value schema.

optional
message: ErrorMessage

The error message.

optional
pipe: PipeAsync<SetOutput<TValue>>

A validation and transformation pipe.

Returns

An async set schema.