Open lantw44 opened 2 months ago
Oops... :facepalm:
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