You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is worth looking into as TS 4.3 has not been released yet, but using this version causes store name parameters to not be resolved correctly.
E.g.
import{openDB,DBSchema}from'idb';asyncfunctiondoDatabaseStuff(){constdb=awaitopenDB<DB>('documents',1,{upgrade(db,oldVersion,newVersion,transaction){// Argument of type 'string' is not assignable to parameter of type 'never'. ts(2345)db.createObjectStore('documents',{keyPath: 'id'});}});}interfaceDBextendsDBSchema{documents: {value: {id: string,text: string,}key: string,},};
Not sure if this is worth looking into as TS 4.3 has not been released yet, but using this version causes store name parameters to not be resolved correctly.
E.g.
package.json:
[Issue Repository]
The text was updated successfully, but these errors were encountered: