You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
ref #2565 - handle null message in XAUTOCLAIM
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
import { UnwrapReply, ArrayReply, BlobStringReply, BooleanReply, CommandArguments, DoubleReply, MapReply, NullReply, NumberReply, RedisArgument, TuplesReply } from '../RESP/types';
|
||||
import { UnwrapReply, ArrayReply, BlobStringReply, BooleanReply, CommandArguments, DoubleReply, MapReply, NullReply, NumberReply, RedisArgument, TuplesReply, RespType } from '../RESP/types';
|
||||
|
||||
export function isNullReply(reply: unknown): reply is NullReply {
|
||||
return reply === null;
|
||||
}
|
||||
|
||||
export const transformBooleanReply = {
|
||||
2: (reply: NumberReply<0 | 1>) => reply as unknown as UnwrapReply<typeof reply> === 1,
|
||||
|
Reference in New Issue
Block a user