We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
In the documentation :
Replies will be transformed into useful data structures: await client.hGetAll("key"); // { field1: 'value1', field2: 'value2' } await client.hVals("key"); // ['value1', 'value2']
In VS Code:
const data = await this.redisClient.HGETALL(group); return Object.entries(data).map((entry) => { const value = parseFloat(entry[1]); ^^^^^^^^^ return { key: entry[0], value: isNaN(value) ? null : value }; });
Argument of type '{ toString: {}; }' is not assignable to parameter of type 'string'. (parameter) entry: [string, { toString: {}; }]
In 4.7.0, the TS type of the entry was: (parameter) entry: [string, string]
(parameter) entry: [string, string]
The text was updated successfully, but these errors were encountered:
I am facing same issue
Sorry, something went wrong.
fix(client): add type annotations
e09d0d5
Fix type parameter for transformTuplesReply in CONFIG_GET and HGETALL commands fixes redis#2933
Hi @oom- , thanks for the catch. The fix should be available in the next release
87b77e3
nkaradzhov
Successfully merging a pull request may close this issue.
Uh oh!
There was an error while loading. Please reload this page.
Description
Since the 5.0.0 I'm having typescript error when using HGETALL
In the documentation :
In VS Code:
In 4.7.0, the TS type of the entry was:
(parameter) entry: [string, string]
The text was updated successfully, but these errors were encountered: