Sanity Library Reference Docs
Preparing search index...
@sanity/functions
DocumentEventHandler
Type Alias DocumentEventHandler<IData>
Beta
DocumentEventHandler
:
(
envelope
:
{
context
:
FunctionContext
;
event
:
DocumentEvent
<
IData
>
}
,
)
=>
void
|
Promise
<
void
>
A function handler for a document event.
Type Parameters
IData
=
any
Type declaration
(
envelope
:
{
context
:
FunctionContext
;
event
:
DocumentEvent
<
IData
>
}
,
)
:
void
|
Promise
<
void
>
Parameters
envelope
:
{
context
:
FunctionContext
;
event
:
DocumentEvent
<
IData
>
}
Returns
void
|
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Sanity Library Reference Docs
Loading...
A function handler for a document event.