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:
expectdeclarationsinline functions with reified type parameters
suspend functions
secondary constructors without
@JsNameextension properties
enum classes
annotation classes
Signatures of exported declarations must only contain "exportable" types:
dynamic,Any,String,Boolean,Byte,Short,Int,Float,DoubleBooleanArray,ByteArray,ShortArray,IntArray,FloatArray,DoubleArrayArray<exportable-type>Function types with exportable parameters and return types
externalor@JsExportclasses and interfacesNullable counterparts of types above
Unit return type. Must not be nullable
This annotation is experimental, meaning that restrictions mentioned above are subject to change.