Skip to main content

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]?​

readonly optional [completionCallbackOutput]?: (output) => void

Experimental

Parameters​

output​

O

Returns​

void


operation​

readonly operation: string

Experimental

Name of the on-complete operation.


service​

readonly service: string

Experimental

Name of the on-complete service.


sourceContext​

readonly sourceContext: 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?​

readonly optional sourceContextType?: TypeInfo<unknown, unknown>

Experimental

Type information for converting sourceContext.


taskQueue​

readonly taskQueue: string

Experimental

Task queue of the Worker that runs the on-complete operation.