I am trying to define a kotlin external class for ...
# javascript
s
I am trying to define a kotlin external class for a javascript class. But how do I access its static members (the properties defined on the javascript constructor function)
b
You can define them inside companion object of external class, like:
Copy code
external class Foo {
  // instance members
  companion object {
      fun staticMember()
  }
}
f
Oh, it works now? cool
b
it works so a long time, modulo bugs 🙂
👍 1