API Reference
Rockets Core API
nestjs-event
interfaces
EventInterface

Interface: EventInterface<P, R>

The interface that defines Event key and payload signatures.

Extends

  • EventKeyInterface.EventExpectsReturnOfInterface<R>

Extended by

Type Parameters

Type ParameterDefault type
Pundefined
RP

Properties

PropertyTypeDescriptionInherited from
expectsReturnOfR-EventExpectsReturnOfInterface.expectsReturnOf
keystringEvent key.EventKeyInterface.key
payloadPReturn the payload that should be emitted.-