instapp / storagedb

MongoDB-like API for HTML5 Storage (localStorage and sessionStorage)
https://instapp.github.io/storagedb
MIT License
17 stars 4 forks source link

Library un-usable on Typescript projects #5

Open danyalejandro opened 4 years ago

danyalejandro commented 4 years ago

Not sure if this project is still maintained, but I tried using it on a typescript project and it throws a TypeError: storagedb2_1.default is not a constructor which causes compilation to fail. Maybe a .d.ts definitions file would be needed.

acathur commented 4 years ago

hi @danyalejandro, did you try import * as StorageDB from 'storagedb2'? I'll probably rewrite this project with typescript.