@ExperimentalJsExport @Target([AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION, AnnotationTarget.FILE]) annotation class JsExport
Exports top-level declaration on JS platform.
Compiled module exposes declarations that are marked with this annotation without name mangling.
This annotation can be applied to either files or top-level declarations.
It is currently prohibited to export the following kinds of declarations:
expect
declarations@JsName
Signatures of exported declarations must only contain "exportable" types:
dynamic
, Any
, String
, Boolean
, Byte
, Short
, Int
, Float
, Double
BooleanArray
, ByteArray
, ShortArray
, IntArray
, FloatArray
, DoubleArray
Array<exportable-type>
external
or @JsExport
classes and interfacesThis annotation is experimental, meaning that restrictions mentioned above are subject to change.
Exports top-level declaration on JS platform.
<init>()
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-js-export/index.html