I know that i can bind constructors of a JS class via
type t
@new @module(...) external constructor : (...) => t = "myJsClass"
But I’m lost as to how do i access its methods
as an example we can use the following js class
class myJsClass {
constructor(x) {
this.x = x
}
f(y) {
return x + y
}
}
how do i call f
in rescript?