kriszyp/lmdb-js

How to define a subDB w its types.

Closed this issue · 2 comments

Its technically a TS question but i think that would be cool to be here too.

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'});

Yes exactly lol, thanks