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

x/valibot/src/schemas/index.ts>lazyAsync

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

Creates an async lazy schema.

Type Parameters

TGetter extends (input: unknown) => MaybePromise<BaseSchema | BaseSchemaAsync>

Parameters

getter: TGetter

The schema getter.

Returns

An async lazy schema.