, but you can probably use Kotlin Wrappers for inspiration
a
ar-g
08/03/2023, 8:55 PM
do you know what this code is generated from? I.e. the interface for chrome.storage.local is more complex, can't work it out to fit.
Another way to do it is just rely on js() dynamic code usage
ar-g
08/03/2023, 9:03 PM
ot, I think I made some progress with this interface:
Copy code
public external interface ChromeStorage {
fun set(items: dynamic): Promise<Unit>
fun get(key: String): Promise<dynamic>
fun remove(key: String): Promise<Unit>
fun clear(): Promise<Unit>
}