We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
The text was updated successfully, but these errors were encountered:
Change your import statement to:
import * as ls from "local-storage"
See https://github.com/bevacqua/local-storage#typescript
Sorry, something went wrong.
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: