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