Shan
08/27/2022, 7:47 PMdynamic
types:
I have a js function from an imported library which returns dynamic
. I'm trying to cast the return type's properties to kotlin types to create a typesafe wrapper of sorts. I can cast js primitives to kotlin primitives fine, but anything more complex like a js Uint8Array
as UByteArray
give me a ClassCastException
. Wondering what the strategy is for this? Do I need to create my own Uint8Array
type & implementations?Big Chungus
08/27/2022, 7:59 PMBig Chungus
08/27/2022, 8:00 PMShan
08/27/2022, 8:03 PMturansky
08/27/2022, 8:18 PM