ts-fortress
Preparing search index...
utils/validation-error
prependPathToValidationErrors
Function prependPathToValidationErrors
prependPathToValidationErrors
(
errors
:
readonly
Readonly
<
{
actualValue
:
unknown
;
details
?:
ValidationErrorDetails
;
expectedType
:
string
;
path
:
readonly
string
[]
;
typeName
:
string
;
}
,
>
[]
,
pathSegment
:
string
,
)
:
readonly
Readonly
<
{
actualValue
:
unknown
;
details
?:
ValidationErrorDetails
;
expectedType
:
string
;
path
:
readonly
string
[]
;
typeName
:
string
;
}
,
>
[]
Prepends a path segment to all validation errors
Parameters
errors
:
readonly
Readonly
<
{
actualValue
:
unknown
;
details
?:
ValidationErrorDetails
;
expectedType
:
string
;
path
:
readonly
string
[]
;
typeName
:
string
;
}
,
>
[]
pathSegment
:
string
Returns
readonly
Readonly
<
{
actualValue
:
unknown
;
details
?:
ValidationErrorDetails
;
expectedType
:
string
;
path
:
readonly
string
[]
;
typeName
:
string
;
}
,
>
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
ts-fortress
Loading...
Prepends a path segment to all validation errors