ts-fortress
Preparing search index...
utils/validation-error
prependIndexToValidationErrors
Function prependIndexToValidationErrors
prependIndexToValidationErrors
(
errors
:
readonly
Readonly
<
{
actualValue
:
unknown
;
details
?:
ValidationErrorDetails
;
expectedType
:
string
;
path
:
readonly
string
[]
;
typeName
:
string
;
}
,
>
[]
,
index
:
number
,
)
:
readonly
Readonly
<
{
actualValue
:
unknown
;
details
?:
ValidationErrorDetails
;
expectedType
:
string
;
path
:
readonly
string
[]
;
typeName
:
string
;
}
,
>
[]
Prepends an array index to all validation errors
Parameters
errors
:
readonly
Readonly
<
{
actualValue
:
unknown
;
details
?:
ValidationErrorDetails
;
expectedType
:
string
;
path
:
readonly
string
[]
;
typeName
:
string
;
}
,
>
[]
index
:
number
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 an array index to all validation errors