Skip to main content

TransactionEvent <T>

The TransactionEvent class is the superclass for all events in relation to transactions. A transaction processes actions generated from model and resource diffs.

@group

Events/Transaction

@returns

The Event instance.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Type parameters

    • T

    Parameters

    • optionalname: string
    • optionalpayload: T

    Returns TransactionEvent<T>

Properties

readonlyinheritedheader

header: { timestamp: number }

Type declaration

  • timestamp: number

readonlyinheritedname

name: string

readonlyinheritedpayload

payload: T

Methods

staticinheritedregistrar

  • registrar(...args: [EventService, PropertyDescriptor]): void
  • The registrar() method is explicitly called by the EventSource decorator for a method to enhance that method to auto-emit events.


    Parameters

    • rest...args: [EventService, PropertyDescriptor]

      Arguments are spread out using the array spread operator.

    Returns void