I am wrapping jQuery library and Dukat gives me fo...
# javascript
a
I am wrapping jQuery library and Dukat gives me following definition:
Copy code
external interface JQuery {
    fun fancytree(options: FancytreeOptions = definedExternally /* null */): Fancytree
    fun fancytree(option: String? = definedExternally /* null */, vararg rest: Any): Any
}
It is obvious that I can't use it with kotlin jquery since this JQuery and jQuery in the bindings are two different things. How can I make it right?
e
You should be able to do an unsafeCast to the other jQuery.
a
You are correct, but it looks ugly. Still, it is better than nothing.