Skip to main content

TransactionCallbackStatus TypeAlias

The status of the transaction callback in the RunTransaction API.

This API is provided as an alpha preview and may change without notice.

To use, import via fluid-framework/alpha.

For more information about our API support guarantees, see here.

Signature

export type TransactionCallbackStatus<TSuccessValue, TFailureValue> = ({
rollback?: false;
value: TSuccessValue;
} | {
rollback: true;
value: TFailureValue;
}) & {
preconditionsOnRevert?: readonly TransactionConstraint[];
};

Type Parameters

Parameter Description
TSuccessValue
TFailureValue