Skip to Content
API referencePulsar CoreSrcInterfacesTrackerCallbacks<T>

@tuwaio/pulsar-core-monorepo


TrackerCallbacks<T>

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

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:232 

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:233 

Parameters

newTx

T

oldTx

T

Returns

void | Promise<void>


onSuccess()?

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

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

Parameters

tx

T

Returns

void | Promise<void>

Last updated on