You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oops... 🤦
To fix it we should change the HGET transformReply function type to return RedisCommandArgument | null rather than RedisCommandArgument | undefined.
LMK if you want to create a PR, or if you prefer that I'll do that..
Description
Run the example code:
It prints
null
ifhash
doesn't exist on the server. However, TypeScript says:Which is wrong. TypeScript should remind the caller it should handle null.
Node.js Version
20.12.2
Redis Server Version
7.0.7 (Amazon ElastiCache)
Node Redis Version
4.7.0
Platform
Linux
Logs
No response
The text was updated successfully, but these errors were encountered: