Skip to main content
Module

x/valibot/src/methods/forward/forwardAsync.ts>forwardAsync

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

Forwards the issues of the passed validation action.

Type Parameters

TInput extends Record<string, unknown> | ArrayLike<unknown>
TIssue extends BaseIssue<unknown>

Parameters

action: BaseValidation<TInput, TInput, TIssue> | BaseValidationAsync<TInput, TInput, TIssue>

The validation action.

pathKeys: PathKeys<TInput>

The path keys.

Returns

BaseValidationAsync<TInput, TInput, TIssue>

The modified action.