npm:redis – everything returns `string`?
Every command I try to use from
npm:redis
seems to have inferred return type string
. Look at the screenshot. Surely this command should be returning string[]
.
Is this not supposed to be working automatically? Anyone tried this?![](https://utfs.io/f/794beb36-9fa0-436c-bf78-fbf2cc6d8a25-1nq2cb.png)
3 Replies
The GitHub README says:
Replies will be transformed into useful data structures:
This seems like a bug in the types of the NPM package. Can you check the type definition of the
hVals
function in VS Code?i tried, but it was really obscure. tbh i ended up just using /x/redis and it works a lot better 😛 thank you!