Sanity Library Reference Docs
Preparing search index...
@sanity/client
csm
ApplySourceDocumentsUpdateFunction
Type Alias ApplySourceDocumentsUpdateFunction
Alpha
ApplySourceDocumentsUpdateFunction
:
<
T
=
unknown
>
(
changedValue
:
T
,
context
:
{
cachedDocument
:
Partial
<
SanityDocument
>
;
previousValue
:
T
;
sourceDocument
:
ContentSourceMapDocuments
[
number
]
;
sourcePath
:
ContentSourceMapParsedPath
;
}
,
)
=>
T
Type declaration
<
T
=
unknown
>
(
changedValue
:
T
,
context
:
{
cachedDocument
:
Partial
<
SanityDocument
>
;
previousValue
:
T
;
sourceDocument
:
ContentSourceMapDocuments
[
number
]
;
sourcePath
:
ContentSourceMapParsedPath
;
}
,
)
:
T
Type Parameters
T
=
unknown
Parameters
changedValue
:
T
context
:
{
cachedDocument
:
Partial
<
SanityDocument
>
;
previousValue
:
T
;
sourceDocument
:
ContentSourceMapDocuments
[
number
]
;
sourcePath
:
ContentSourceMapParsedPath
;
}
Returns
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Sanity Library Reference Docs
Loading...