jitsi / jitsi-meet-react-sdk

React SDK for Jitsi Meet
Apache License 2.0
67 stars 39 forks source link

Property 'on' does not exist on type 'IJitsiMeetExternalApi' #10

Closed federico-ntr closed 2 years ago

federico-ntr commented 2 years ago

addEventListener and addEventListeners are deprecated and the comment suggests to use on instead but it is not exported from IJitsiMeetExternalApi, which leads to error in title (ts2339).

mihhu commented 2 years ago

Could you please tell me when does this error show up? I can't seem to reproduce it. The IJitsiMeetExternalApi should inherit the on method from the EventEmitter class.

federico-ntr commented 2 years ago

The error used to show up on VSCode but it seems I'm not able to reproduce it anymore. I have just opened the project where it used to show up and now it works fine. Hovering on on even shows me the JSDocs from the EventEmitter class. I didn't change anything so it's pretty weird, but I guess the issue can be closed. Sorry for the useless issue.