Prometheus Entity Management API
Preparing search index...
@prometheus-ags/prometheus-entity-management
GraphActionOptions
Interface GraphActionOptions<TInput, TResult>
interface
GraphActionOptions
<
TInput
,
TResult
>
{
key
?:
string
;
onError
?:
(
error
:
Error
,
input
:
TInput
)
=>
void
;
onSuccess
?:
(
result
:
TResult
,
input
:
TInput
,
tx
:
GraphTransaction
)
=>
void
;
optimistic
?:
(
tx
:
GraphTransaction
,
input
:
TInput
)
=>
void
;
run
:
(
tx
:
GraphTransaction
,
input
:
TInput
)
=>
TResult
|
Promise
<
TResult
>
;
}
Type Parameters
TInput
TResult
Index
Properties
key?
on
Error?
on
Success?
optimistic?
run
Properties
Optional
key
key
?:
string
Optional
on
Error
onError
?:
(
error
:
Error
,
input
:
TInput
)
=>
void
Optional
on
Success
onSuccess
?:
(
result
:
TResult
,
input
:
TInput
,
tx
:
GraphTransaction
)
=>
void
Optional
optimistic
optimistic
?:
(
tx
:
GraphTransaction
,
input
:
TInput
)
=>
void
run
run
:
(
tx
:
GraphTransaction
,
input
:
TInput
)
=>
TResult
|
Promise
<
TResult
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
key
on
Error
on
Success
optimistic
run
Prometheus Entity Management API
Loading...