How to define a subDB w its types.
Closed this issue · 2 comments
KaffinPX commented
Its technically a TS question but i think that would be cool to be here too.
kriszyp commented
Can't you do this with parameterized types already? This should open a sub db that specifies numeric keys and string values:
const subDB = db.openDB<string, number>({name: 'test'});
KaffinPX commented
Yes exactly lol, thanks