You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
RedisJSON
This commit is contained in:
@@ -4,6 +4,10 @@ export function isNullReply(reply: unknown): reply is NullReply {
|
||||
return reply === null;
|
||||
}
|
||||
|
||||
export function isArrayReply(reply: unknown): reply is ArrayReply<unknown> {
|
||||
return Array.isArray(reply);
|
||||
}
|
||||
|
||||
export const transformBooleanReply = {
|
||||
2: (reply: NumberReply<0 | 1>) => reply as unknown as UnwrapReply<typeof reply> === 1,
|
||||
3: undefined as unknown as () => BooleanReply
|
||||
|
Reference in New Issue
Block a user