| 37 | protected async emit(event: string, data: ArbitraryObject): Promise<EventStatus>; |
| 38 | protected async emit(event: string, text: string, data: ArbitraryObject): Promise<EventStatus>; |
| 39 | protected async emit(event: string, tOrD: any, data?: ArbitraryObject): Promise<EventStatus> { |
| 40 | return data ? |
| 41 | emit(event, this.descriptors, this, tOrD, data) : |
| 42 | emit(event, this.descriptors, this, tOrD); |
| 43 | } |
| 44 | |
| 45 | /** immediately dispatches an event */ |
| 46 | protected async emitNow(event: string, text: string): Promise<EventStatus>; |