All Downloads are FREE. Search and download functionalities are using the official Maven repository.

core.core.kt Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package kotlin.js

import java.util.*

@native
public val noImpl: Nothing
    get() = throw Exception()

@native
public fun eval(expr: String): dynamic = noImpl

@native
public val undefined: Nothing? = noImpl

@native operator fun  MutableMap.set(key: K, value: V): V? = noImpl

@library
public fun println() {}

@library
public fun println(s: Any?) {}

@library
public fun print(s: Any?) {}

//TODO: consistent parseInt
@native
public fun parseInt(s: String, radix: Int = 10): Int = noImpl

@library
public fun safeParseInt(s: String): Int? = noImpl

@library
public fun safeParseDouble(s: String): Double? = noImpl

@native
public fun js(code: String): dynamic = noImpl

/**
 * Function corresponding to JavaScript's `typeof` operator
 */
public inline fun jsTypeOf(a: Any?): String = js("typeof a")




© 2015 - 2024 Weber Informatics LLC | Privacy Policy