Bindings to methods of a JS class

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?

Hi @AHaliq.

You could use https://rescript-lang.org/syntax-lookup#send-decorator

2 Likes