main.kotlinx.js.Record.kt Maven / Gradle / Ivy
@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