Skip to main content

SerializationEvent <T>

The SerializationEvent class is the superclass for all events in relation to serialization and deserialization.

@group

Events/Serialization

@returns

The Event instance.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Type parameters

    • T

    Parameters

    • optionalname: string
    • optionalpayload: T

    Returns SerializationEvent<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