[stdlib-js] Move jsTypeOf to a documentable source root and restore its kdoc

This commit is contained in:
Ilya Gorbunov
2023-10-30 15:16:23 +01:00
committed by Space Team
parent 27ed611e70
commit fc64e30829
2 changed files with 8 additions and 4 deletions
@@ -120,10 +120,6 @@ internal fun jsBitShiftL(a: Any?, b: Any?): Int
@JsIntrinsic
internal fun jsInstanceOfIntrinsic(a: Any?, b: Any?): Boolean
// @JsIntrinsic
// To prevent people to insert @OptIn every time
public external fun jsTypeOf(a: Any?): String
@JsIntrinsic
internal fun jsNewTarget(a: Any?): Any?
+8
View File
@@ -51,3 +51,11 @@ public external val definedExternally: Nothing
* including parameters. You can't refer to functions, properties and classes by their short names.
*/
public external fun js(code: String): dynamic
/**
* Function corresponding to JavaScript's `typeof` operator
*/
// @JsIntrinsic
// To prevent people to insert @OptIn every time
public external fun jsTypeOf(a: Any?): String