is the only way to call Kotlin code from JS to use @JsExport, which requires IR?
s
Svyatoslav Kuzmich [JB]
03/27/2021, 5:10 AM
This is the only way with IR. Without IR, all public declarations are visible from JS, but you might want to use @JsName to prevent function name mangling.
👍 1
c
crummy
03/27/2021, 5:18 AM
Do I need IR to get TS definitions?
s
Svyatoslav Kuzmich [JB]
03/27/2021, 5:18 AM
You do.
Svyatoslav Kuzmich [JB]
03/27/2021, 5:19 AM
IR and @JsExport is planned to be the only way in the future once it is fixed and stabilized.