Hi, I am trying to create a chrome browser extensi...
# javascript
m
Hi, I am trying to create a chrome browser extension in Kotlin. I didn't find many projects using this approach. It seems to me that only thing we are missing is to generate the browser api declarations, and it's perfectly usable (someone already did that, but only for firefox and it seems that that project is no longer updated https://kotlinconf.com/2019/talks/video/2018/21914/). Is there some reason I am missing why are people not using kotlin for browser extensions?
i
Hi! I think, Kotlin cab be used for browser extension, but you are right, it is necessary to get API declarations. If you have TypeScript definitions (d.ts) you can make first step on generating Kotlin declarations via dukat https://github.com/kotlin/dukat And try to write what you need via Kotlin
p
you may enjoy watching this talk

https://www.youtube.com/watch?v=QaPMKZay_Ig