Interface TransactionalUpdateStateOptions<STATE, INPUTS>

interface TransactionalUpdateStateOptions<STATE, INPUTS> {
    description?: string;
    inputs?: INPUTS | ((prev) => INPUTS);
    isUndo?: boolean;
    record: any;
    state: STATE | ((prev) => STATE);
    uuid?: string;
}

Type Parameters

  • STATE = any
  • INPUTS = undefined

Properties

description?: string
inputs?: INPUTS | ((prev) => INPUTS)

The previous input will be: The inputs from child transactions. (but not from previous transactions)

Type declaration

isUndo?: boolean
record: any
state: STATE | ((prev) => STATE)

The previous state will be: The state of a previous transaction + any child transactions.

Type declaration

uuid?: string