This effectively allows string values to be passed as min and max for ZRANGEBYSCORE, ZREMRANGEBYSCORE, ZREVRANGEBYSCORE and ZCOUNT.
Note: in future, it may be possible to use template literal types to only allow strings like (1 rather than any strings, but it's likely too complex and will require a higher typescript version than most users have.
Fixes #30
Now that v2 has a more maintainable "patching" system, this works around https://github.com/redis/redis-doc/issues/1420 - to be removed if a fix is merged there.
This effectively allows string values to be passed as
min
andmax
for ZRANGEBYSCORE, ZREMRANGEBYSCORE, ZREVRANGEBYSCORE and ZCOUNT.Note: in future, it may be possible to use template literal types to only allow strings like
(1
rather than any strings, but it's likely too complex and will require a higher typescript version than most users have.