Hi mates. I wonder if I can use JQuery with K/JS. ...
# javascript
y
Hi mates. I wonder if I can use JQuery with K/JS. Is there some type bindings for that? Saw something in @Robert Jaros's kvision, but I assume that's an unrelated stuff for the topic and I can't use it for standalone applications.
r
You can. This is a standalone project not connected to KVision in any way (apart from the package name 😉) https://github.com/rjaros/jquery-kotlin
🔥 1
b
You certainly can use it from K/JS, but there are no standalone bindings for it. From what I've seen in kvision, it only has the stuff needed for kvision and is meant for internal kvision use. However wrapping JS APIs is not that hard these days... Run dukat on jquery TS declarations and then adjust as needed.
Ah, just when I hit send 😄
y
However wrapping JS APIs is not that hard these days... Run dukat on jquery TS declarations and then adjust as needed.
Totally agree with you, man 👌 Personally I used to write typings manually or adjust the dukat typings, it's not a problem. But I was searched the solution for my friend, who is new to Kotlin/Js and it's a bit hard to start from scratch without knowledge of js modules classification and without knowledge of how to declare them (different module types) in Kotlin.
b
Looks like it's time for another kjs wrapping guide on dev.to 😀