Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/domain_functions/src/errors.ts>errorMessagesFor

Types and functions to make composition easy and safe
Latest
function errorMessagesFor
import { errorMessagesFor } from "https://deno.land/x/domain_functions@v3.0.0/src/errors.ts";

Extracts the error messages for a property from the given ErrorResult.

Parameters

errors: SchemaError[]

the ErrorResult['inputErrors'] or ErrorResult['environmentErrors']

name: string

the name of the property