Skip to Content
API referencePulsar CoreSrcInterfacesTrackerCallbacks<T>

@tuwaio/pulsar-core-monorepo


TrackerCallbacks<T>

Defined in: packages/pulsar-core/src/types.ts:218 

Defines the standard callback structure for transaction events.

Type Parameters

T

T extends Transaction

The specific transaction type, extending Transaction.

Properties

onError?

optional onError?: (error, tx?) => void | Promise<void>

Defined in: packages/pulsar-core/src/types.ts:220 

Parameters

error

unknown

tx?

T

Returns

void | Promise<void>


onReplaced?

optional onReplaced?: (newTx, oldTx) => void | Promise<void>

Defined in: packages/pulsar-core/src/types.ts:221 

Parameters

newTx

T

oldTx

T

Returns

void | Promise<void>


onSuccess?

optional onSuccess?: (tx) => void | Promise<void>

Defined in: packages/pulsar-core/src/types.ts:219 

Parameters

tx

T

Returns

void | Promise<void>

Last updated on