const tx = db.transaction("mystore")
const store = unwrap(tx.store)
everything works as expected. If I instead write:
const tx = db.transaction("mystore", "readwrite")
const store = unwrap(tx.store)
then typescript complains that no overload matches the unwrap call. However, it works as expected at run-time. Since IDBPObjectStore is a generic type of four arguments, shouldn't wrap-idb-value.ts interface Unwrap contain:
If I write:
everything works as expected. If I instead write:
then typescript complains that no overload matches the
unwrap
call. However, it works as expected at run-time. SinceIDBPObjectStore
is a generic type of four arguments, shouldn'twrap-idb-value.ts
interface Unwrap
contain:instead of: