Tomas Kormanak
05/20/2021, 11:28 AM@JsModule("botui")
external class BotUI(name: String) {}
val bot = BotUI("test")
and I am getting error $module.$botui is not a constructor
botui module exports only one class as a default. Should I use different approach when module has only default export?turansky
05/20/2021, 11:31 AM@file:JsModule("botui")
@JsName("default")
external class BotUI(name: String) {}
Tomas Kormanak
05/20/2021, 12:35 PMUnexpected token in...
if (typeof default === 'undefined') {
It seems that "default" needs to be somehow escaped.Tomas Kormanak
05/20/2021, 12:51 PM@file:JsModule()
and JsModule("")
turansky
05/20/2021, 4:54 PMTomas Kormanak
05/20/2021, 7:11 PMturansky
05/21/2021, 1:59 PM