aboutsummaryrefslogtreecommitdiff
path: root/integration-tests/gradle/projects/it-js-ir-0/src/main/kotlin/RootPackageClass.kt
blob: b93e180eaf431f62592fe09c8950548cefea7264 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@file:Suppress("unused")

import org.w3c.dom.url.URLSearchParams
import react.Props
import react.RComponent
import react.State

/**
 * A class that lives inside the root package
 */
class RootPackageClass {
    val description = "I do live in the root package!"
}

fun RComponent<*, *>.params() = URLSearchParams()

fun test(list: MutableList<Int>) = "list"

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