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

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

The modular and type safe schema library for validating structural data 🤖
Latest
function forward
import { forward } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/methods/index.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>

The validation action.

pathKeys: PathKeys<TInput>

The path keys.

Returns

BaseValidation<TInput, TInput, TIssue>

The modified action.