API Reference
Rockets Core API
nestjs-invitation
classes
InvitationAcceptedEventAsync

Class: InvitationAcceptedEventAsync

Abstract async event class.

To create a custom async event, extend the EventAsync class.

You can override and customize the [payload]Event#payload getter if desired. Please read the documentation for the abstract Event class for the complete documentation.

For synchronous events, see the EventSync abstract class.

Example

// event payload type
type MyPayloadType = {id: number, active: boolean};
 
// event class
class MyEvent extends EventAsync<MyPayloadType> {}
 
// create an event
const myEvent = new MyEvent({id: 1234, active: true});

Extends

Constructors

new InvitationAcceptedEventAsync()

new InvitationAcceptedEventAsync(payload?): InvitationAcceptedEventAsync

Constructor

Parameters

ParameterType
payload?InvitationAcceptedEventPayloadInterface

Returns

InvitationAcceptedEventAsync

Param

Payload to emit when the event is dispatched.

Inherited from

EventAsync.constructor

Defined in

packages/nestjs-event/dist/events/event.d.ts:8

Properties

PropertyModifierTypeDescriptionInherited from
expectsReturnOfreadonlyPromise<boolean>Internal Expects return of payloadEventAsync.expectsReturnOf

Accessors

key

get key(): string

Event key.

Returns

string

The event key string.

Inherited from

EventAsync.key

Defined in

packages/nestjs-event/dist/events/event.d.ts:6


payload

get payload(): P

Returns payload that was passed to the Event constructor.

Returns

P

The event payload.

Inherited from

EventAsync.payload

Defined in

packages/nestjs-event/dist/events/event.d.ts:9


key

get static key(): string

Event key.

Returns

string

The event key string.

Inherited from

EventAsync.key

Defined in

packages/nestjs-event/dist/events/event.d.ts:5