Edoardo Luppi
07/02/2023, 1:52 PMChris Lee
07/02/2023, 2:34 PMclass Foo {
companion object {
fun something() : Boolean {
return true
}
}
}
Edoardo Luppi
07/02/2023, 2:38 PMexport declare class Foo {
constructor();
static get Companion(): {
something(): boolean;
};
}
Chris Lee
07/02/2023, 2:39 PMEdoardo Luppi
07/02/2023, 2:40 PMexport declare class Foo {
constructor();
static something(): boolean
}
Which is much more usable from the TS side.Edoardo Luppi
07/02/2023, 2:41 PMJvmStatic
for this reason, for example.Chris Lee
07/02/2023, 2:47 PMJeff Lockhart
07/02/2023, 3:59 PM@JsStatic
for Kotlin/JS.