Update events.mdx

This commit is contained in:
Lea Anthony
2022-07-28 05:20:19 +10:00
committed by GitHub
parent a229e04e3e
commit 17b17558e6
@@ -46,6 +46,6 @@ This method sets up a listener for the given event name, but will only trigger a
Go Signature: `EventsEmit(ctx context.Context, eventName string, optionalData ...interface{})`
JS Signature: `EventsEmit(ctx context, optionalData function(optionalData?: any))`
JS Signature: `EventsEmit(eventName string, optionalData function(optionalData?: any))`
This method emits the given event. Optional data may be passed with the event. This will trigger any event listeners.