Open KotlinIsland opened 3 years ago
export interface Bar { "asdf.asdf": string; }
Could be represented by:
import kotlin.reflect.KProperty external interface Bar var Bar.asdf_asdf: String by UsingGet("asdf.asdf") class UsingGet<T>(val name: String) { inline operator fun getValue(thisRef: Any, property: KProperty<*>): T { return thisRef.asDynamic()[name] } inline operator fun setValue(thisRef: Any, property: KProperty<*>, value: T) { thisRef.asDynamic()[name] = value } }
Could be represented by: