Subscribe to an event of type K only once.
After the event has been emitted, an unsubscribe for event of type K will be done
Interface defining the events
Type of event to subscribe to
Callback to execute when event is triggered
Subscribe to an event of type K
Interface defining the events
Type of event to subscribe to
Callback to execute when event is triggered
Unsubscribe to an event of type K
Interface defining the events
Type of event to unsubscribe for
Callback that will be unsubscribed
The TypedEventEmitter class is used to provide a typed way of emitting events.
It can be used by a consumer application to be notified during certain stages while executing this package, for example when parsing a copybook, an event is triggered at the start of parsing, at the start of every new line, at the end of every line and at the end of processing.
Supported events
start,newLine,endLineandendevent that are triggered during copybook parsingparsingComplete,transactionsLoaded,transactionCreatedandtransactionPackageSavedevent that are triggered by certain actions within this classExample
Subscribe to events
Emitting events