Sanity Library Reference Docs
Preparing search index...
sanity
index
HistoryStore
Interface HistoryStore
Beta
Hidden
interface
HistoryStore
{
getDocumentAtRevision
:
(
documentId
:
string
,
revision
:
string
,
)
=>
Promise
<
SanityDocument
>
;
getHistory
:
(
documentIds
:
string
[]
,
options
?:
{
revision
?:
string
;
time
?:
string
}
,
)
=>
Promise
<
{
documents
:
SanityDocument
[]
}
>
;
getTransactions
:
(
documentIds
:
string
[]
,
)
=>
Promise
<
TransactionLogEventWithMutations
[]
>
;
restore
:
(
id
:
string
,
targetId
:
string
,
rev
:
string
,
options
?:
RestoreOptions
,
)
=>
Observable
<
void
>
;
}
Index
Properties
get
Document
At
Revision
get
History
get
Transactions
restore
Properties
Beta
get
Document
At
Revision
getDocumentAtRevision
:
(
documentId
:
string
,
revision
:
string
,
)
=>
Promise
<
SanityDocument
>
Beta
get
History
getHistory
:
(
documentIds
:
string
[]
,
options
?:
{
revision
?:
string
;
time
?:
string
}
,
)
=>
Promise
<
{
documents
:
SanityDocument
[]
}
>
Beta
get
Transactions
getTransactions
:
(
documentIds
:
string
[]
,
)
=>
Promise
<
TransactionLogEventWithMutations
[]
>
Beta
restore
restore
:
(
id
:
string
,
targetId
:
string
,
rev
:
string
,
options
?:
RestoreOptions
,
)
=>
Observable
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
get
Document
At
Revision
get
History
get
Transactions
restore
Sanity Library Reference Docs
Loading...
Hidden