ts-fortress
Preparing search index...
utils/validation-error
validationErrorsToMessages
Function validationErrorsToMessages
validationErrorsToMessages
(
errors
:
readonly
Readonly
<
{
actualValue
:
unknown
;
details
?:
ValidationErrorDetails
;
expectedType
:
string
;
path
:
readonly
string
[]
;
typeName
:
string
;
}
,
>
[]
,
maxLengthToPrintActualValue
?:
number
,
)
:
readonly
string
[]
Converts an array of validation errors to an array of string messages (for backward compatibility)
Parameters
errors
:
readonly
Readonly
<
{
actualValue
:
unknown
;
details
?:
ValidationErrorDetails
;
expectedType
:
string
;
path
:
readonly
string
[]
;
typeName
:
string
;
}
,
>
[]
maxLengthToPrintActualValue
:
number
= 20
Returns
readonly
string
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
ts-fortress
Loading...
Converts an array of validation errors to an array of string messages (for backward compatibility)