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

x/valibot/src/methods/index.ts>coerceAsync

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

Coerces the input of a async schema to match the required type.

Parameters

schema: TSchema

The affected schema.

action: (value: unknown) => unknown

The coerceation action.

Returns

The passed schema.