Is there any way to disable `id_qzvhcz$_0` in most...
# javascript
l
Is there any way to disable
id_qzvhcz$_0
in most cases automatically?
s
+1. Maybe some annotation/compiler flag to generate bridge methods with types check and call correspond mangled function? Example:
Copy code
fun print(user: User) { ... }
fun print(group: Group) { ... }

@JsName("print")
fun print(a: Any?) {
    when (a) {
        is User -> print(a)
        is Group -> print(a)
        else -> error("None of the functions can be called with the arguments supplied")
    }
}
For now we are writing this functions by hand (required for js api).