blob: cbe6240eac328e1917fe54ddd9fcba52879fe257 (
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
|
@file:Suppress("unused")
import org.w3c.dom.url.URLSearchParams
import org.w3c.dom.HTMLAnchorElement
import react.dom.html.AnchorHTMLAttributes
import react.Props
import react.State
/**
* A class that lives inside the root package
*/
class RootPackageClass {
val description = "I do live in the root package!"
}
// sample method that uses classes from dom and react, should compile
fun URLSearchParams.react(props: Props, state: State) {}
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>
|