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

x/valibot/src/error/index.ts>flatten

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

Flatten the error messages of a Vali error.

Type Parameters

optional
TSchema extends BaseSchema | BaseSchemaAsync = any

Parameters

error: ValiError

A Vali error.

Flatten the error messages of issues.

Type Parameters

optional
TSchema extends BaseSchema | BaseSchemaAsync = any

Parameters

issues: Issues

The issues.