(
eventSuffix: TEvent,
payload: TEventMap[TEvent],
)
| 33 | } |
| 34 | |
| 35 | createEventPayload<TEvent extends keyof TEventMap & string>( |
| 36 | eventSuffix: TEvent, |
| 37 | payload: TEventMap[TEvent], |
| 38 | ) { |
| 39 | return { |
| 40 | type: `${this.#pluginId}:${eventSuffix}`, |
| 41 | payload, |
| 42 | pluginId: this.#pluginId, |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | emit<TEvent extends keyof TEventMap & string>( |
| 47 | _eventSuffix: TEvent, |
nothing calls this directly
no outgoing calls
no test coverage detected