Javascript getter function as value


#1

I have a JS-Module with a getter:

external object Module {
     fun getPath(): String
}

Is there a way to make a value out of this:

external object Module {
     val path: String
}

?