Do singletons have JS interop, how do you access t...
# javascript
a
Do singletons have JS interop, how do you access the instance blob thinking upside down?
t
Copy code
// Kotlin
@JsExport
object MySingleton {
    val data
}

// JS
import { MySingleton } from 'mylib'

console.log(MySingleton.data)
a
Oh nice! Thanks 😮
t
Known cases - isolated data holders. Like this - https://docs.yworks.com/yfileshtml/#/api/License
👀 1