Sporades SDK API
Preparing search index...
server
CapsuleHooks
Type Alias CapsuleHooks<Schema>
Capsule lifecycle hooks around named mutations.
type
CapsuleHooks
<
Schema
extends
SchemaDefinition
=
SchemaDefinition
>
=
{
afterMutation
?:
MutationHook
<
Schema
>
[]
;
beforeMutation
?:
MutationHook
<
Schema
>
[]
;
init
?:
(
ctx
:
CapsuleContext
<
Schema
>
)
=>
MaybePromise
<
void
>
;
shutdown
?:
(
ctx
:
CapsuleContext
<
Schema
>
)
=>
MaybePromise
<
void
>
;
}
Type Parameters
Schema
extends
SchemaDefinition
=
SchemaDefinition
Index
Properties
after
Mutation?
before
Mutation?
init?
shutdown?
Properties
Optional
after
Mutation
afterMutation
?:
MutationHook
<
Schema
>
[]
Optional
before
Mutation
beforeMutation
?:
MutationHook
<
Schema
>
[]
Optional
init
init
?:
(
ctx
:
CapsuleContext
<
Schema
>
)
=>
MaybePromise
<
void
>
Optional
shutdown
shutdown
?:
(
ctx
:
CapsuleContext
<
Schema
>
)
=>
MaybePromise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
after
Mutation
before
Mutation
init
shutdown
Sporades SDK API
Loading...
Capsule lifecycle hooks around named mutations.