1.0.3 • Published 2 years ago

inlada-transaction-processor v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

inlada-transaction-processor

Usage:

import { ITransactionService, transactionProcessor } from 'inlada-transaction-processor';

const myNewTransactionHandler: ITransactionService = {
  onStart: uid => {},
  onSuccess: uid => {},
  onFail: uid => {},
}

transactionProcessor.registerTransactionService(myNewTransactionHandler);

Methods of myNewTransactionHandler will be called on start event processing, on success and of fail result, with event uid. (see inladajs package)