Type Alias EmitterEvent

EmitterEvent: {
    data?: Record<string, unknown>;
    event: string;
    [key: string]: unknown;
}

The EmitterEvent type is used to define the shape of the data that is passed to the event listeners.

Type declaration

  • [key: string]: unknown
  • Optionaldata?: Record<string, unknown>

    The data associated with the event.

  • event: string

    The event name, e.g., "draw-frame".