Yes for this case, I tend to use this kind of declaration.
But as the goal is to be as close as possible to JavaScript, I think the second option can be relevant (when the API allows it)
↧
How do you writing bindings today?
↧