Sanity Library Reference Docs
Preparing search index...
@sanity/client
GenerateTargetDocument
Type Alias GenerateTargetDocument<T>
Beta
GenerateTargetDocument
:
|
{
_id
:
string
;
operation
:
"edit"
}
|
{
_id
?:
string
;
_type
:
string
;
initialValues
?:
T
;
operation
:
"create"
}
|
{
_id
:
string
;
_type
:
string
;
initialValues
?:
T
;
operation
:
"createIfNotExists"
;
}
|
{
_id
:
string
;
_type
:
string
;
initialValues
?:
T
;
operation
:
"createOrReplace"
;
}
Type Parameters
T
extends
Record
<
string
,
Any
>
=
Record
<
string
,
Any
>
Type declaration
{
_id
:
string
;
operation
:
"edit"
}
_id
:
string
See
#AgentActionSchema.forcePublishedWrite
operation
:
"edit"
{
_id
?:
string
;
_type
:
string
;
initialValues
?:
T
;
operation
:
"create"
}
Optional
_id
?:
string
See
#AgentActionSchema.forcePublishedWrite
_type
:
string
Optional
initialValues
?:
T
operation
:
"create"
{
_id
:
string
;
_type
:
string
;
initialValues
?:
T
;
operation
:
"createIfNotExists"
;
}
_id
:
string
See
#AgentActionSchema.forcePublishedWrite
_type
:
string
Optional
initialValues
?:
T
operation
:
"createIfNotExists"
{
_id
:
string
;
_type
:
string
;
initialValues
?:
T
;
operation
:
"createOrReplace"
}
_id
:
string
See
#AgentActionSchema.forcePublishedWrite
_type
:
string
Optional
initialValues
?:
T
operation
:
"createOrReplace"
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Sanity Library Reference Docs
Loading...
See
#AgentActionSchema.forcePublishedWrite