Not sure, that there is better way: ```external fu...
# javascript
g
Not sure, that there is better way:
Copy code
external fun on(event: String, callback: dynamic)
For type safety you can provide wrapper functions for different events with particular lambda params types
👍🏽 1