Sanity App SDK
Preparing search index...
@sanity/sdk
index
DocumentOptions
Interface DocumentOptions<TPath, TDocumentType, TDataset, TProjectId>
Beta
Options for specifying a document and optionally a path within it.
interface
DocumentOptions
<
TPath
extends
string
|
undefined
=
undefined
,
TDocumentType
extends
string
=
string
,
TDataset
extends
string
=
string
,
TProjectId
extends
string
=
string
,
>
{
dataset
?:
TDataset
;
documentId
:
string
;
documentType
:
TDocumentType
;
path
?:
TPath
;
perspective
?:
ReleasePerspective
|
ClientPerspective
;
projectId
?:
TProjectId
;
}
Type Parameters
TPath
extends
string
|
undefined
=
undefined
TDocumentType
extends
string
=
string
TDataset
extends
string
=
string
TProjectId
extends
string
=
string
Hierarchy (
View Summary
)
DocumentHandle
<
TDocumentType
,
TDataset
,
TProjectId
>
DocumentOptions
Index
Properties
dataset?
document
Id
document
Type
path?
perspective?
project
Id?
Properties
Optional
Beta
dataset
dataset
?:
TDataset
Beta
document
Id
documentId
:
string
Beta
document
Type
documentType
:
TDocumentType
Optional
Beta
path
path
?:
TPath
Optional
Beta
perspective
perspective
?:
ReleasePerspective
|
ClientPerspective
Optional
Beta
project
Id
projectId
?:
TProjectId
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
dataset
document
Id
document
Type
path
perspective
project
Id
Sanity App SDK
Loading...
Options for specifying a document and optionally a path within it.