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 @fluidframework/tree/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 |