kotlin.js.JsQualifier

JsQualifier

@Target([AnnotationTarget.FILE]) annotation class JsQualifier

Platform and version requirements: JS

Adds prefix to external declarations in a source file.

JavaScript does not have concept of packages (namespaces). They are usually emulated by nested objects. The compiler turns references to external declarations either to plain unprefixed names (in case of plain modules) or to plain imports. However, if a JavaScript library provides its declarations in packages, you won't be satisfied with this. You can tell the compiler to generate additional prefix befo