@file:Suppress("unused") import org.w3c.dom.HTMLAnchorElement import kotlinx.coroutines.CoroutineScope /** * A class that lives inside the root package */ class RootPackageClass { val description = "I do live in the root package!" } fun test(list: MutableList) = "list" @JsModule("is-sorted") @JsNonModule external fun sorted(a: Array): Boolean // this declaration can be used to check deserialization of dynamic type external interface TextLinkProps: AnchorHTMLAttributes // this declaration uses external library and external documentation link fun CoroutineScope.externalClass() = "some string" /** * Some external function with JsFun * @see kotlin.JsFun */ @kotlin.JsFun("xxx") external fun externalFun()