Skip to main content

ResourceSerializedEvent

This event is emitted when resources are serialized to an output.

@example
const myEvent = new ResourceSerializedEvent();
EventService.getInstance().emit(myEvent);
@returns

The Event instance.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • payload: void
    • userData: object = {}

    Returns ResourceSerializedEvent

Properties

readonlyheader

header: { timestamp: number }

Type declaration

  • timestamp: number

readonlypayload

payload: void

readonlyuserData

userData: object

Methods

staticregistrar

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


    Parameters

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

      Arguments are spread out using the array spread operator.

    Returns void