Say I require jQuery in my kotlin/js so it is not ...
# javascript
s
Say I require jQuery in my kotlin/js so it is not available globally as $. How do I define an interface for it that both have properties and can be invoked?
s
What part are you referring to ?
The module is in a kotlin variable. So I (dont think so) cant just access it with a
@JsName('$')
as the page describes
I was just using jQuery as an example. The case is that I have a required module in a variable that can both be invoked and have properties
And would like to define an interface for it
k
Sorry, I don't understand
I'm referring to ts2kt
But if you want to write your own declarations, please, read this: http://kotlinlang.org/docs/reference/js-modules.html