@adobe/data - v0.10.30
Preparing search index...
service
ErrorResultSchema
Function ErrorResultSchema
ErrorResultSchema
<
T
extends
ResultSchema
,
E
extends
ResultSchema
>
(
valueSchema
:
T
,
errorSchema
:
E
,
)
:
Omit
<
T
,
"properties"
|
"required"
>
&
{
properties
:
{
error
:
E
}
;
required
:
readonly
[
"error"
]
;
type
:
"object"
;
}
Returns a json schema for an error result with the specified result schema.
Type Parameters
T
extends
ResultSchema
E
extends
ResultSchema
Parameters
valueSchema
:
T
errorSchema
:
E
Returns
Omit
<
T
,
"properties"
|
"required"
>
&
{
properties
:
{
error
:
E
}
;
required
:
readonly
[
"error"
]
;
type
:
"object"
;
}
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
@adobe/data - v0.10.30
Loading...
Returns a json schema for an error result with the specified result schema.