openimsdk / open-im-sdk-web-wasm

JS SDK for OpenIM Web use by Webassembly of go
https://openim.io
Apache License 2.0
29 stars 37 forks source link

Feature - add type inference for `on()`, `off()` and `emit()` #87

Closed isaackwok closed 1 month ago

isaackwok commented 1 month ago

🅰 Please add the issue ID after "Fixes #"

Fixes #86

I wrote the very simple version to infer the data types of different event. However, I found the callbacks on the official docs seems different from all the CbEvents I found in the code.

Can anyone help define the remaining callbacks in EventDataMap?