Anuta Vlad Sv
07/01/2025, 7:41 AM@JsExport
expect class WindowManager {
fun close()
}
// jsMain
@JsExport
actual class WindowManager {
fun close() {
window.close()
}
}
Up until now, I could only use the @JsExport annotation on functions. When I tried applying it to a class, I got the error: "This annotation is not applicable to target 'class'. Applicable targets: function."
Is this a documentation error, or is @JsExport now intended to work with classes as well?Anuta Vlad Sv
07/01/2025, 8:47 AMArtem Kobzar
07/01/2025, 11:12 AM