<@U1ZQ36CJD> Using `::YourConstructor`?
# javascript
l
@spierce7 Using
::YourConstructor
?
s
I don't see access to any constructors that way
To be clear, I have a kotlin class, and I need to give a javascript framework the constructor function for my class
s
@scott
JsClass<T>
is a constructor function. For example, this creates new instance using constructor function
Copy code
class A
fun t() {
  val aJsClass: JsClass<A> = A::class.js
  return js('new aJsClass()')
}
So, you need to pass A::class.js to your js framework
👏 1
s
Ic. Interesting. The jsclass is the constructor function. thanks!
it worked 🙂 Thanks!
👍🏻 1