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

main.kotlinx.js.Record.kt Maven / Gradle / Ivy

There is a newer version: 1.0.1-pre.823
Show newest version
@file:Suppress(
    "DECLARATION_CANT_BE_INLINED",
    "NOTHING_TO_INLINE",
)

package kotlinx.js

sealed interface Record {
    inline operator fun get(key: K): V? =
        asDynamic()[key]

    inline operator fun set(key: K, value: V) {
        asDynamic()[key] = value
    }
}

fun  Record(): Record = jso()

fun  Record(
    block: Record.() -> Unit,
): Record = jso(block)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy