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
The following code show this typescript error:
Type '() => [number, Dispatch<SetStateAction>, boolean, string]' must have a 'Symbol.iterator' method that returns an iterator.
const [value, setValue, isPersistent, error] = useChromeStorageLocal( 'counterLocal', 0 )
If I put a @ts-expect-error before the line, it runs ok, but the values won't be typed.
The text was updated successfully, but these errors were encountered:
Thank you for reporting @pauloendoh The community supports typing. Typescript is not my language. It will be great if you create PR with a fix.
Sorry, something went wrong.
Hey, guys! @onikienko @pauloendoh
I made this PR to fix it. Can you please review it? #349
I would love to use this library, and this is the only thing missing from me.
Successfully merging a pull request may close this issue.
The following code show this typescript error:
Type '() => [number, Dispatch<SetStateAction>, boolean, string]' must have a 'Symbol.iterator' method that returns an iterator.
If I put a @ts-expect-error before the line, it runs ok, but the values won't be typed.
The text was updated successfully, but these errors were encountered: