Skip to main content

TransactionCallbackStatus TypeAlias

Contains a value and status returned from a user-supplied transaction callback.

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> = ((WithValue<TSuccessValue> & {
rollback?: false;
}) | (WithValue<TFailureValue> & {
rollback: true;
})) & {
preconditionsOnRevert?: readonly TransactionConstraintAlpha[];
};

Type Parameters

ParameterDescription
TSuccessValue
TFailureValue