Skip to main content
Module

x/domain_functions/src/errors.ts>errorMessagesFor

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
function errorMessagesFor
import { errorMessagesFor } from "https://deno.land/x/domain_functions@v2.6.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