Bernhard
05/05/2026, 10:19 AMBernhard
05/05/2026, 10:21 AMBernhard
05/05/2026, 10:22 AMBernhard
05/05/2026, 10:25 AMBernhard
05/05/2026, 10:26 AMBernhard
05/05/2026, 11:00 AM@JsPlainObject
external interface NestedRecord {
var name: String
}
@JsPlainObject
external interface ExampleRecord {
var name: String
var nested: NestedRecord
}
fun main() {
val result: Record<JsAny, JsAny?> = partialOf<ExampleRecord> {
name = "hi"
nested = NestedRecord(name = "abc")
nested {
name = "ho"
}
}
}Bernhard
05/05/2026, 11:02 AMBernhard
05/05/2026, 11:13 AMBernhard
05/05/2026, 12:04 PMturansky
05/09/2026, 9:08 PM@JsPlainObject it's highly recommended to use val s. Otherwise you will have broken nesting 😞turansky
05/09/2026, 9:15 PMPartial potentially can be supported in Kotlin Wrappers. With common builder and adapter for transforming X -> Partial<X>