aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/gradle/projects/it-wasm-basic/src/wasmMain/kotlin/RootPackageClass.kt
blob: a2d05dffc781b864aabf11f321f7c8815a8a4abf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@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<Int>) = "list"

@JsModule("is-sorted")
@JsNonModule
external fun <T> sorted(a: Array<T>): Boolean

//  this declaration can be used to check deserialization of dynamic type
external interface TextLinkProps: AnchorHTMLAttributes<HTMLAnchorElement>

// 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()