Bernhard
06/06/2024, 5:51 PMEdoardo Luppi
06/06/2024, 6:13 PMexternal interface s is via jso<Type> { }, which is very inconvenient as it only allows var properties. @turansky is there a way to allow interfaces with val properties using jso?
With externals you'll be able to use @JsPlainObject since K2.Bernhard
06/06/2024, 6:15 PMBernhard
06/06/2024, 6:15 PMturansky
06/06/2024, 6:15 PM@JsPlainObject can be used right nowEdoardo Luppi
06/06/2024, 6:17 PMjso + interface and val would require some kind of error suppression via compiler pluginturansky
06/06/2024, 6:19 PMjso is for very complex/generic interfaces only and work with val - isn't case for jsoturansky
06/06/2024, 6:20 PMjso case - props of html elementsEdoardo Luppi
06/06/2024, 6:20 PMjso I couldn't use val properties, I had to declare everything as var. Did I miss something?turansky
06/06/2024, 6:21 PM@JsPlainObject :)Edoardo Luppi
06/06/2024, 6:21 PMBernhard
06/06/2024, 6:22 PMBernhard
06/06/2024, 6:22 PMEdoardo Luppi
06/06/2024, 6:23 PMBernhard
06/06/2024, 6:24 PMBernhard
06/06/2024, 6:25 PMturansky
06/06/2024, 6:26 PMso you need to pass in all values to a function in this case?
Only non-nullable
Bernhard
06/06/2024, 6:26 PM