Update events.mdx

A little mistake in the arguments of Js EventEmit
This commit is contained in:
Junker 2022-05-07 23:12:01 +08:00 committed by GitHub
commit 7c0d1019f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.