ExperimentalWasmJsInterop
@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.TYPEALIAS] )
Marks API related to interoperability with JS as experimental.
Note that the behavior of such API may be changed in the future.
Usages of such API will be reported as warnings unless an explicit opt-in with the OptIn annotation, e.g. @OptIn(ExperimentalWasmJsInterop::class)
, or with the -opt-in=kotlin.js.ExperimentalWasmJsInterop
compiler option is given.
Since Kotlin
2.2@Target(allowedTargets = [AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.TYPEALIAS] )
Marks API related to interoperability with JS as experimental.
Note that the behavior of such API may be changed in the future.
Usages of such API will be reported as warnings unless an explicit opt-in with the OptIn annotation, e.g. @OptIn(ExperimentalWasmJsInterop::class)
, or with the -opt-in=kotlin.js.ExperimentalWasmJsInterop
compiler option is given.