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 { TuplesToMapReply, BlobStringReply, SetReply, NumberReply, ArrayReply, Resp2Reply, Command } from '../RESP/types';
|
||||
import { TuplesToMapReply, BlobStringReply, SetReply, NumberReply, ArrayReply, UnwrapReply, Resp2Reply, Command } from '../RESP/types';
|
||||
|
||||
type TrackingInfo = TuplesToMapReply<[
|
||||
[BlobStringReply<'flags'>, SetReply<BlobStringReply>],
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
return ['CLIENT', 'TRACKINGINFO'];
|
||||
},
|
||||
transformReply: {
|
||||
2: (reply: Resp2Reply<TrackingInfo>) => ({
|
||||
2: (reply: UnwrapReply<Resp2Reply<TrackingInfo>>) => ({
|
||||
flags: reply[1],
|
||||
redirect: reply[3],
|
||||
prefixes: reply[5]
|
||||
|
Reference in New Issue
Block a user