Open pkellner opened 4 years ago
Sorry for not understanding better how to post, but had a working project that just did these two lines:
import ls from 'local-storage'; const user = ls.get('userInfo');
When I upgraded to 2.0, I started getting TypeScrpt error complaining about get.
get
The error is as follows:
Property 'get' does not exist on type '<T>(key: string, value?: T | undefined) => void'.
If this issue makes no sense, feel free to close. I really don't understand why I'd get an error like that.
Change your import statement to:
import * as ls from "local-storage"
See https://github.com/bevacqua/local-storage#typescript
Sorry for not understanding better how to post, but had a working project that just did these two lines:
When I upgraded to 2.0, I started getting TypeScrpt error complaining about
get
.The error is as follows:
If this issue makes no sense, feel free to close. I really don't understand why I'd get an error like that.