Interface: CompletionCallback<O>
Experimental
Callback that reports the outcome of a standalone Nexus operation to an on-complete operation. Create callbacks with createCompletionCallback.
O is the source operation output type that the callback accepts.
Nexus Handler Callbacks are experimental.
Type Parameters
O
O = unknown
Properties
[completionCallbackOutput]?
readonlyoptional[completionCallbackOutput]?: (output) =>void
Experimental
Parameters
output
O
Returns
void
operation
readonlyoperation:string
Experimental
Name of the on-complete operation.
service
readonlyservice:string
Experimental
Name of the on-complete service.
sourceContext
readonlysourceContext:unknown
Experimental
Value that the on-complete operation receives with the outcome. The client encodes it with the serialization context of the source operation.
sourceContextType?
readonlyoptionalsourceContextType?:TypeInfo<unknown,unknown>
Experimental
Type information for converting sourceContext.
taskQueue
readonlytaskQueue:string
Experimental
Task queue of the Worker that runs the on-complete operation.