andylamax
04/22/2023, 7:08 AM@JsExportscommonMain/kotlin/sample/User.ktpackage sample
import kotlin.js.JsExport
@JsExport
class User> Task compileKotlinWasm FAILED
e: sample/src/commonMain/kotlin/sample/User.kt This annotation is not applicable to target 'class'@file:JsExport
@file:JsExport
package koncurrent
import kotlin.js.JsExport
class User> Task compileKotlinWasm FAILED
e: sample/src/commonMain/kotlin/sample/User.kt This annotation is not applicable to target 'file' and use site target '@file'andylamax
04/22/2023, 7:08 AMSuppressSvyatoslav Kuzmich [JB]
04/22/2023, 2:32 PM// common:
expect annotation class JsTargetOnlyJsExport() 
@JsTargetOnlyJsExport
class User
// js:
actual typealias JsTargetOnlyJsExport = JsExport  // Real JsExport
// wasm:
actual annotation class JsTargetOnlyJsExport  // Fake JsExport, does nothingandylamax
04/22/2023, 5:05 PMJSTargetOnlyJsExportSvyatoslav Kuzmich [JB]
04/22/2023, 6:31 PM@Suppress("WRONG_ANNOTATION_TARGET")andylamax
04/22/2023, 7:00 PMandylamax
07/29/2023, 1:35 AM@JsExportandylamax
10/05/2023, 8:54 AMSvyatoslav Kuzmich [JB]
10/05/2023, 10:12 AMandylamax
10/06/2023, 2:38 AM