@wpkernel/pipeline / NodeResult
Type Alias: NodeResult<TOutput, TFailure, TRequest>
ts
type NodeResult<TOutput, TFailure, TRequest> =
| {
effects: readonly TRequest[];
kind: "success";
output: TOutput;
pause?: PauseRequest;
}
| {
error: TFailure;
kind: "failure";
}
| {
kind: "cancelled";
reason?: unknown;
};Algebraic node settlement: success, declared failure or cancellation. cancelled is valid only after the supplied signal is aborted; premature cancellation is an invalid-node-result contract failure.
Type Parameters
TOutput
TOutput extends GraphValue
TFailure
TFailure
TRequest
TRequest
