You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
convert "resp types" to interfaces to allow circular references
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { RedisArgument, TuplesReply, BlobStringReply, ArrayReply, Command } from '../RESP/types';
|
||||
import { RedisArgument, TuplesReply, BlobStringReply, ArrayReply, UnwrapReply, Command } from '../RESP/types';
|
||||
import { StreamMessagesRawReply, transformStreamMessagesReply } from './generic-transformers';
|
||||
|
||||
export interface XAutoClaimOptions {
|
||||
@@ -37,7 +37,7 @@ export default {
|
||||
|
||||
return args;
|
||||
},
|
||||
transformReply(reply: XAutoClaimRawReply) {
|
||||
transformReply(reply: UnwrapReply<XAutoClaimRawReply>) {
|
||||
return {
|
||||
nextId: reply[0],
|
||||
messages: transformStreamMessagesReply(reply[1]),
|
||||
|
Reference in New Issue
Block a user