Why is it the case ? Is it planned to fix it ?
# javascript
a
Why is it the case ? Is it planned to fix it ?
Managed to find a workaround with
Copy code
external interface IDBPObjectStoreAddMethod<DBTypes, StoreName> {
	operator fun invoke(value: StoreValue<DBTypes, StoreName>, key: StoreKey<DBTypes, StoreName> = definedExternally): Promise<StoreValue<DBTypes, StoreName>>
	operator fun invoke(value: StoreValue<DBTypes, StoreName>, key: IDBKeyRange = definedExternally): Promise<StoreValue<DBTypes, StoreName>>
}

var add: IDBPObjectStoreAddMethod<DBTypes, StoreName>