kotlin.js.JsModule

JsModule

@Target([AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FUNCTION, AnnotationTarget.FILE]) annotation class JsModule

Platform and version requirements: JS

Denotes an external declaration that must be imported from native JavaScript library.

The compiler produces the code relevant for the target module system, for example, in case of CommonJS, it will import the declaration via the require(...) function.

The annotation can be used on top-level external declarations (classes, properties, functions) and files. In case of file (which can't be exte