Skip to main content

TransactionCallbackStatusBeta TypeAlias

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

This API is provided as a beta preview and may change without notice.

To use, import via fluid-framework/beta.

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

Input

This type is "input," meaning that code outside of the library defining it should not read from it. Future versions of this type may add optional members or make typing of members more general.

Signature

export type TransactionCallbackStatusBeta<TSuccessValue, TFailureValue> = (WithValue<TSuccessValue> & {
readonly rollback?: false;
}) | (WithValue<TFailureValue> & {
readonly rollback: true;
});

Type Parameters

ParameterDescription
TSuccessValue
TFailureValue