aboutsummaryrefslogtreecommitdiff
path: root/dokka-integration-tests/gradle/projects/it-wasm-js-wasi-basic/src/wasmJsMain/kotlin/RootPackageClass.kt
diff options
context:
space:
mode:
Diffstat (limited to 'dokka-integration-tests/gradle/projects/it-wasm-js-wasi-basic/src/wasmJsMain/kotlin/RootPackageClass.kt')
-rw-r--r--dokka-integration-tests/gradle/projects/it-wasm-js-wasi-basic/src/wasmJsMain/kotlin/RootPackageClass.kt30
1 files changed, 30 insertions, 0 deletions
diff --git a/dokka-integration-tests/gradle/projects/it-wasm-js-wasi-basic/src/wasmJsMain/kotlin/RootPackageClass.kt b/dokka-integration-tests/gradle/projects/it-wasm-js-wasi-basic/src/wasmJsMain/kotlin/RootPackageClass.kt
new file mode 100644
index 00000000..a2d05dff
--- /dev/null
+++ b/dokka-integration-tests/gradle/projects/it-wasm-js-wasi-basic/src/wasmJsMain/kotlin/RootPackageClass.kt
@@ -0,0 +1,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() \ No newline at end of file