Skip to main content
Module

x/valibot/mod.ts>flatten

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
function flatten
import { flatten } from "https://deno.land/x/valibot@v0.19.0/mod.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.